I believe the same syntax is used with the lme4
package as rstanarm
, but I'm having trouble figuring out exactly what the differences are between the different options when fitting a grouped random effect on the slope.
Say we have a model with formula
response ~ fixed + (1 + rand1 | group)
What exactly is the differences in assumptions between that and these three other options:
1:
response ~ fixed + (0 + rand1 | group)
2:
response ~ fixed + (-1 + rand1 | group)
3:
response ~ fixed + (1 + rand1 || group)
I know that here one answer mentioned that the ||
formula assumes the covariance matrix among the deviations in the parameters by level of group
is diagonal, but it's not clear to me how assumptions about the covariance matrix change between that and say the 1st and 2nd options.