beta0 = beta0_raw + e * gamma[1] with
with
beta0 = beta0_raw * gamma[e,1]
David
Alright, so I made a (scatter)-plot of the data just to give you a an idea of what I was talking about. You can see on the y-Axis the amplitude of the signal and on the x-axis the distance to the target. In my case I would say it is the opposite to what you were showing: a big amount of intercept variability in all 5 groups and if at all the number of electrodes having an influence on the slop. As you can also see, there is not much data, in fact for 2 electrodes it is just one subject. It may be thus not very promising but I would like to give it a try. In the worst case I learn more about regression and bayesian regression. What would your approach be to implement the number of electrodes as group-level predictor for the slope?
Thanks in advance
Cheers
David

--
You received this message because you are subscribed to a topic in the Google Groups "Stan users mailing list" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/stan-users/pLbnxj1pxXs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to stan-users+...@googlegroups.com.
Alright, so I made a (scatter)-plot of the data just to give you a an idea of what I was talking about. You can see on the y-Axis the amplitude of the signal and on the x-axis the distance to the target. In my case I would say it is the opposite to what you were showing: a big amount of intercept variability in all 5 groups and if at all the number of electrodes having an influence on the slop. As you can also see, there is not much data, in fact for 2 electrodes it is just one subject. It may be thus not very promising but I would like to give it a try. In the worst case I learn more about regression and bayesian regression. What would your approach be to implement the number of electrodes as group-level predictor for the slope?
Thanks in advance
Cheers
David
Hi Daniel,
first of all thanks for all the suggestions. So I have tried both, using
indexed gamma values for every of the five electrode counts (as Bob suggested) and I have also
tried multiplying gamma with the number of electrodes. Results were both
similar. But what actually changed a lot was using multivariate priors for
intercept and slope (all according to chapter 6.12 in the manual) and
especially when I restricted the group-level interaction to the slope (see the
attached model). This is the output:
|
sd 2.5% 50% 97.5% n_eff Rhat |
Looking at the predictive posterior check and generating data with the values improves the fit and reduced the residual. How would you interpret the value of gamma? Does it even make sense to look at it or is enough to plot the results (e.g. slopes estimates vs. number of electrodes).
And another question. You introduced a comment saying that "beta_mu [...] // Need tighter prior" than normal(0, 1). Why do you think so?
Cheers
David