|
本帖最后由 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.
|
|