全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
38 0
2026-01-23

For example, the regression equations I am using are shown in the figure.

Based on these equations, I would like to ask whether this R code correctly reflects the model described by the equations above.

#model ////
conditional <- lmer(READING~ TIME + SCHSES_cen + SCHTYPE  +GENDER +AGE_cen  + (TIME|COUNTRY)+(1|COUNTRY:CYCLE)+(1|COUNTRY:CYCLE:SCHOOL), data=data,REML = FALSE, control=lmerControl(optimizer="bobyqa", optCtrl=list(maxfun=1e5)))
summary(conditional)

In addition, (TIME|COUNTRY) represent the slope of Time may vary as a function of the country. So I can get both fixed and random components of Π000k and Π001k.  (1|COUNTRY:CYCLE) and (1|COUNTRY:CYCLE:SCHOOL) represent the random intercept model at level 2 and level 1.

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群