找回密码
 立即注册
查看: 3095|回复: 2

请教一个用传统两阶段法解多层次模型分析的问题

[复制链接]
发表于 2016-4-1 15:47:33 | 显示全部楼层 |阅读模式
本帖最后由 windren_0 于 2016-4-1 15:49 编辑

一套数据出的三套题目,一点头绪都没有,第一大题我试着写下, 可是后两个小题一直报错……部分原因是英语太差……求高手指导……至少给点,思路,谢谢。数据已经附件上传了…

11.7
The folder cd4 has CD4 percentages for a set of young children with HIV who
were measured several times over a period of two years. The dataset also includes
the ages of the children at each measurement.
(a) Graph the outcome (the CD4 percentage, on the square root scale) for each
child as a function of time.
(b) Each child’s data has a time course that can be summarized by a linear fit.
Estimate these lines and plot them for all the children.
(c) Set up a model for the children’s slopes and intercepts as a function of
the treatment and age at baseline. Estimate this model using the two-step
procedure–first estimate the intercept and slope separately for each child, then
fit the between-child models using the point estimates from the first step.
12.2
(a) Write a model predicting CD4 percentage as a function of time with varying
intercepts across children. Fit using lmer() and interpret the coefficient for
time.
(b) Extend the model in (a) to include child-level predictors (that is, group-level
predictors) for treatment and age at baseline. Fit using lmer() and interpret
the coefficients on time, treatment, and age at baseline.
(c) Investigate the change in partial pooling from (a) to (b) both graphically and
numerically.
(d) Compare results in (b) to those obtained in part (c).
13.4
(a) Extend the model in Exercise 12.2 to allow for varying slopes for the time
predictor.
(b) Next fit a model that does not allow for varying slopes but does allow for
different coefficients for each time point (rather than fitting the linear trend).
(c) Compare the results of these models both numerically and graphically.


allvar.rar

17.47 KB, 下载次数: 4

回复

使用道具 举报

发表于 2016-4-1 19:35:18 | 显示全部楼层
正好我也有同样的问题
回复

使用道具 举报

发表于 2016-4-1 19:35:50 | 显示全部楼层
正好我也有同样的问题
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|R语言中文网

GMT+8, 2024-11-23 10:29 , Processed in 0.026727 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表