线性混合效应模型在lme4中的导数计算和稳健标准误
Derivative Computations and Robust Standard Errors for Linear Mixed Effects Models in lme4
摘要:
虽然R中对于许多类型的统计模型都有鲁棒的标准误和相关设施,但对于通过lme 4估计的模型,这些设施明显缺乏。这是因为必要的统计输出,包括随机效应参数的Hessian和casewise梯度,不能立即从lme4中获得,并且获得起来并不容易。在本文中,我们提供并描述了两个新的函数来从高斯混合模型获得此输出:estfun.lmerMod()和vcov.full.lmerMod()。我们讨论了在代码中实现的理论结果,重点是通过包夹层计算强大的标准误。我们还使用Sleepstudy数据来说明代码,并将其与lavaan包中的基准进行比较。
英文摘要:
While robust standard errors and related facilities are available in R for many types of statistical models, the facilities are notably lacking for models estimated via lme4. This is because the necessary statistical output, including the Hessian and casewise gradient of random effect parameters, is not immediately available from lme4 and is not trivial to obtain. In this article, we supply and describe two new functions to obtain this output from Gaussian mixed models: estfun.lmerMod() and vcov.full.lmerMod(). We discuss the theoretical results implemented in the code, focusing on calculation of robust standard errors via package sandwich. We also use the Sleepstudy data to illustrate the code and compare it to a benchmark from package lavaan.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。