miceweight | R Documentation |
Sintetic longitudinal data set based on a clinical trial designed to test two diet treatments in comparison to a control group. The weight of 52 mice (reported in grams) is measured weekly from baseline until week 10 of treatment.
data(miceweight)
This data frame contains the following columns:
treat
Treatment received (treatment 1 (T1), treatment 2 (T2), or control (C))
mouseID
Mouse ID
week
Week since treatment started
weight
Mouse weight in grams
Dietary supplementations were administered for groups T1 and T2 starting at week 5.
This dataset was created using minor perturbations from a real study for which the original data is not publicly available. Data features such as covariances and skewness were preserved.
smsn.lmm
library(ggplot2)
data(miceweight)
ggplot(miceweight) + geom_line(aes(x=week, y=weight, group=mouseID)) +
facet_wrap(~treat) + theme_bw()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.