-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
I want to fix the cov.prior to 10 and residual var to 5. But the cov.prior can not be passed to the model.
How to fix the cov.prior? Here I only have an intercept for one random effect 'rep'.
'''
Define the model formula
formula <- y ~ trt + (1|rep)
Define the control parameters
control = lmerControl(optimizer ='bobyqa')
Fit the model with a prior variance of 10 for the random intercepts
model <- blmer(formula, data=data, cov.prior = (diag(1)*10),
resid.prior = point(value=5, posterior.scale='var'),
control=control)
'''
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels