library(lme4) set.seed(101) ss <- sleepstudy[sample(nrow(sleepstudy), size = round(0.9 * nrow(sleepstudy))), ]
m1 <- lmer(Reaction ~ Days + (1 | Subject) + (0 + Days | Subject), ss) summary(m1)
Let's force the estimates to be 700 and 30.
dd <- as.function(m1) ff <- dd(c(sqrt(700), sqrt(30))) environment(dd)$pp$beta(1) ## values of the new estimates
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.