Skip to content

cov.prior set up #14

@JJ-Zhang-DS

Description

@JJ-Zhang-DS

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)
'''

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions