简体   繁体   English

在R中为GLMER多级仿真“ zelig风格”

[英]Simulation “zelig style” for GLMER multilevel in r

I run a logistic mixed-effects regression with r. 我使用r进行逻辑混合效果回归。 The regression is somehow like this: 回归是这样的:

glmer ( Y~ X1 + X2 + X1:X2 + (1 | country), data = hdp, family = binomial) glmer(Y〜X1 + X2 + X1:X2 +(1 |国家),数据= hdp,家庭=二项式)

Now, with the fixed effects I would like to plot predicted probabilities of Y. I tried with Zelig as this is what I learnt as the easiest way to do simulations and get predicted probabilities, but I've seen the new version does not include multilevel models and the former Zelig Multilevel is very "unstable". 现在,在固定效果下,我想绘制Y的预测概率。我尝试使用Zelig,因为这是我学习到的最简单的进行模拟并获得预测概率的方法,但是我已经看到新版本不包含多级模型和以前的Zelig Multilevel非常“不稳定”。 Is there any easy alternative? 有什么简单的选择吗? How can I do simulations that could be plotted?? 如何进行可以绘制的模拟?

Thanks in advance! 提前致谢!

You can use the merTools package. 您可以使用merTools软件包。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM