R中的频率权重(使用lme4的多级) [英] Frequency weights in R (multilevel using lme4)

查看:118
本文介绍了R中的频率权重(使用lme4的多级)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用lme4构建一个多层次的模型(两个层次:一个班级和一个具有教育数据的学生层次).我正在使用ICCS 2009数据: http://www.iea.nl/iccs_2009.html). ICCS 2009建议使用权重.我将校内学生体重"作为班级和学生水平体重因子的乘积.我还使权重之和等于样本量.我的问题:如何在R中指定要将此权重用作频率权重.我必须使用调查"软件包吗?

I'm building a multilevel model with lme4 (two levels: a class and a student level with educational data). I'm using the ICCS 2009 data: http://www.iea.nl/iccs_2009.html). ICCS 2009 advise the use weights. I made a "within-school student weight" as the product of the class and student level weight factors. I also made the sums of the weights equal to the sample size. My question: how can I specify in R that I want to use this weight as a frequency weight. Do I have to use the "survey" package?

推荐答案

iccs是一个复杂的调查(请参阅用户指南的第3章),R调查包不能(但尚不能)处理多级模型-您可以阅读此帖子的底部了解更多信息

iccs is a complex survey (see chapter 3 of the user guide) and the R survey package cannot (yet) handle multi-level models - you can read the bottom of this post for more detail

如果您不关心标准错误,则lme4中的大多数函数都有一个weights=参数,应该为您提供合理的猜测..但是标准错误都将是错误的.

if you don't care about standard errors, most of the functions in lme4 have a weights= argument that should give you reasonable guesses.. but the standard errors will all be wrong.

iccs 2009用户指南在pdf第33页,共112页上推荐了其他软件.

the iccs 2009 user guide recommends other software on pdf page 33 of 112.

这篇关于R中的频率权重(使用lme4的多级)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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