小编use*_*202的帖子

如何在lme中分别拟合两个随机效果?

我正在使用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)

random r nlme

7
推荐指数
1
解决办法
1万
查看次数

这在 lme4 中意味着什么:包“Rcpp”未提供函数“dataptr”

我正在尝试使用 lme4 执行 LMM,并且弹出此消息:

initializePtr() 中的错误:包“Rcpp”未提供函数“dataptr”

我应该怎么办?

r lme4 lmer

5
推荐指数
1
解决办法
5606
查看次数

标签 统计

r ×2

lme4 ×1

lmer ×1

nlme ×1

random ×1