simr
simr copied to clipboard
Sanity checks for modify
There aren't enough guardrails in modify.R
. e.g.
fm <- lmer(y ~ x + (1|g), data=simdata)
fixef(fm) <- 3
fixef(fm)
gives
Error in structure(object@beta, names = dimnames(X)[[2]]) :
'names' attribute [2] must be the same length as the vector [1]
Add docs for fixef<-
with factors, i.e. need to specify each level.