我正在使用REML在nlme包中进行线性混合效果模型拟合.这些代码对我有用:
# Linear mixed-effects model fit by REML (intercept and not slope)
x <- lme (DV ~ IV1 + IV2 + IV1*IV2, data=a.frame, random=~1|speaker)
summary(x)
# Linear mixed-effects model fit by REML (slope and no intercept)
x1 <- lme (DV ~ IV1 + IV2 + IV1*IV2, data=a.frame, random=~IV3-1|speaker)
summary(x1)
# Linear mixed-effects model fit by REML (slope and intercept)
x2 <- lme (DV ~ IV1 + IV2 + IV1*IV2, data=a.frame, random=~IV3|speaker)
summary(x2)
#nested random effect
x5 <- lme (DV ~ …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用 lme4 执行 LMM,并且弹出此消息:
initializePtr() 中的错误:包“Rcpp”未提供函数“dataptr”
我应该怎么办?