gabrielodom / PHC6099_rBiostat

An R Cookbook for Public Health
https://gabrielodom.github.io/PHC6099_rBiostat/
Other
2 stars 13 forks source link

Create/Edit Lesson: Random Intercept Models #10

Closed gabrielodom closed 4 months ago

gabrielodom commented 5 months ago

I'm not sure if this should be included in part 4 as an extension of ANOVA (for when not all the points are independent but the subjects/clusters are), or if this should be included in part 6 as a special topic. Start here: https://m-clark.github.io/mixed-models-with-R/random_intercepts.html

gabrielodom commented 4 months ago

There's already a lesson here? https://gabrielodom.github.io/PHC6099_rBiostat/lessons_original/04_anova_random_intercept.html

gabrielodom commented 4 months ago

I included both lessons (repeated measures ANOVA and random intercept regression). While they are mathematically congruent, it may be helpful to have both examples (especially considering that the regression version uses the lme4:: package while the ANOVA lesson uses rstatix::anova_test() for the repeated measures implementation).