Learn R Programming

mratios (version 1.4.2)

AP: Angina pectoris data

Description

A data set is generated (from normal distribution) to imitate the summary statistics in Table II of Bauer et al. (1998). In the experiment, patients with chronic stable angina pectoris were randomized to five treatment arms (placebo, three doses of a new compound, and an active control). The primary endpoint is the difference in the duration of an exercise test before and after treatment.

Usage

data(AP)

Arguments

Format

A data frame with 303 observations on the following 2 variables.

prepost

a numeric vector, the difference post treatment measurement minus pre treatment measurement

treatment

a factor with levels AC (the active control), D0 (the zero dose, placebo), and D50, D100, D150, the three dose groups of the new compound.

Examples

Run this code
# NOT RUN {
library(mratios)

data(AP)

str(AP)

boxplot(prepost ~ treatment, data=AP)
by(AP,AP$treatment, function(x){mean(x$prepost)})
by(AP,AP$treatment, function(x){sd(x$prepost)})

# }

Run the code above in your browser using DataLab