这是无意中找到的一个在生物统计学中使用R的教案,是丹麦哥本哈根大学生物统计教研室编写的,有一定示例价值:
http://staff.pubhealth.ku.dk/~pd/mixed-jan.2006/
不是生物统计方面的朋友们也可参考学习 ,由于是以前的教案,R的版本较低,不过你就用最新版的R去练习吧
Plan
1. Working with R. Language basics. Linear and generalized linear models.
2. Classical balanced variance component analyses
3. Unbalanced models using lmer()
4. MANOVA-based repeated measures analysis
5. The older lme() interface. Things that lmer() won’t do
6. Advanced topics: Generalized linear mixed models. Frailty models. Nonlinear mixed-effects models.
Software
I You will need the following:
I R version 2.2.1.
I R packages: lme4, Matrix, coda, mlmRev
I Various data sets (handed out as needed)
I (TINN-R)
I PD has all of this on a USB stick