heart | R Documentation |
A repeated measures demonstration dataset from Milliken and Johnson (1999). Heart rate was measured for twenty four subject at four time periods following administration of a treatment. The treatment types were two active heart drugs and a control. One treatment was assigned to each subject. Thus each drug was administered to eight subjects.
data(heart)
A data frame with 96 observations on the following 4 variables.
rate
A numeric vector describing heart rate (bpm).
time
A factor with levels t1
t2
t3
t4
drug
A factor with levels AX23
BWW9
Ctrl
subject
A factor describing which subject (in drug) that measurements were made on.
Milliken, G. A., and D. E. Johnson (2008) Analysis of Messy Data: Vol. I. Designed Experiments, 2nd edition. CRC.
## Not run:
#data(heart)
#aov(rate ~ drug * time + Error(subject%in%drug), data = heart)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.