在R:lme4 :: glmer中为逻辑混合模型中的重复测量指定随机效应 [英] Specifying random effects for repeated measures in logistic mixed model in R: lme4::glmer

查看:113
本文介绍了在R:lme4 :: glmer中为逻辑混合模型中的重复测量指定随机效应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找反馈,以确定如何正确指定随机效应以说明重复测量设计中的相关性,但是具有多个相关性级别(包括每个预测变量组合的纵向数据 ).结果是二进制的,因此我将拟合逻辑混合模型.我打算使用 lme4 包中的 glmer()函数.如果您想知道这些数据是如何产生的,那么一个例子就是眼动仪:人们的眼睛被跟踪"到了眼睛.持续30秒,例如在不同级别的预测器下,确定它们是否看着屏幕上的某个对象(因此产生二进制结果).

I am looking for feedback to determine how to correctly specify random effects to account for correlation in a repeated measures design, but with multiple levels of correlation (including the data being longitudinal for each combination of predictors). The outcome is binary, so I will be fitting a logistic mixed model. I was planning to use the glmer() function from the lme4 package. If you're wondering how these data arise, one example is from an eye tracker: people's eyes are "tracked" for 30 seconds, e.g., under different levels of the predictors, determining if they looked at a certain object on the screen or not (hence the binary outcome).

研究设计(可以通过处理R中下面虚拟数据集"下的代码来看到):

Study design (which can be seen by processing the code under "Dummy dataset" below in R):

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