R 的 lme4 包中混合效应模型的稳健标准误差 [英] robust standard errors for mixed-effects models in lme4 package of R

查看:64
本文介绍了R 的 lme4 包中混合效应模型的稳健标准误差的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 lme4 包进行线性混合效果建模

I am using the lme4 package for linear mixed effect modeling

混合效应模型如下:

fm01 <- lmer(sublat <- goal + (1|userid))

以上命令返回一个名为 fm01 的 S4 对象

the above command returns an S4 object called fm01

此对象包括固定效应及其 OLS 标准误差(下)

this object includes fixed effects and their OLS standard errors (below)

Fixed effects:

            Estimate Std. Error t value
(Intercept)   31.644      3.320   9.530
goaltypeF1    -4.075      3.243  -1.257
goaltypeF2    -9.187      5.609  -1.638
goaltypeF3   -13.935      9.455  -1.474
goaltypeF4   -20.219      8.196  -2.467
goaltypeF5   -12.134      8.797  -1.379"

但是,我需要提供可靠的标准错误

however, i need to provide robust standard errors

如何使用 lme4 返回的 S4 对象执行此操作?

How can I do this with an S4 object such as returned by lme4?

推荐答案

我认为这就是您要找的:https://cran.r-project.org/web/packages/robustlmm/vignettes/rlmer.pdf

I think this is what you're looking for: https://cran.r-project.org/web/packages/robustlmm/vignettes/rlmer.pdf

它是 robustlmm 包,它具有 rlmer 功能.

It's the robustlmm package, which has the rlmer function.

对象和方法的结构被实现为尽可能类似于 lme4 的结构,并在需要时具有特定于健壮性的扩展."

"The structure of the objects and the methods are implemented to be as similar as possible to the ones of lme4 with robustness specific extensions where needed."

fm01_rob <- rlmer(sublat <- goal + (1|userid))

这篇关于R 的 lme4 包中混合效应模型的稳健标准误差的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆