Learn R Programming

asbio (version 1.9-7)

heart: Heart rate data from Milliken and Johnson (2009)

Description

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.

Usage

data(heart)

Arguments

Format

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.

Examples

Run this code
if (FALSE) {
#data(heart)
#aov(rate ~ drug * time + Error(subject%in%drug), data = heart)
}

Run the code above in your browser using DataLab