Exercise: Growth curve model with interaction
================
## Risperidone vs. haloperidol and schizophrenia (Möller et al. 2008)
Analyze the data from [moeller.csv](../data/moeller.csv):
- `pans`: Positive and Negative Symptom Scale for schizophrenia
- `treat`: medication group
- `risp`: atypical neuroleptic risperidone
- `halo`: conventional neuroleptic haloperidol
``` r
dat <- read.table("../data/moeller.csv", header = TRUE, sep = ",")
dat$id <- factor(dat$id)
dat$treat <- factor(dat$treat, levels = c("risp", "halo"))
lattice::xyplot(pans ~ week, data = dat, groups = treat,
type = c("g", "p", "a"), auto.key = TRUE)
```
- What is the sample size in each treatment group?
- Estimate a random slope model
- What are the estimates for the fixed effects and variance
components?
- Fit a model with quadratic time trends for the population and
individual subjects
- Add an interaction with treatment for the linear and the quadratic
effects for week and test them
- Interpret your results: Which model would you choose?
- Refit the model that you chose with a centered week variable:
- Compare the estimates for your fixed effects and the covariance
components
- Which estimates change and why?
### Reference