Learn R Programming

PASWR2 (version 1.0.5)

RATBP: Rat Blood Pressure

Description

Twelve rats were chosen, and a drug was administered to six rats, the treatment group, chosen at random. The other six rats, the control group, received a placebo. The drops in blood pressure (mmHg) for the treatment group (with probability distribution F) and the control group (with probability distribution G), respectively, were recorded.

Usage

RATBP

Arguments

Format

A data frame with 12 observations on the following 2 variables:

  • mmHg (drops in blood pressure in mm of Hg where positive values are decreases, negative values are increases)

  • group (factor with levels control and treatment)

References

Ugarte, M. D., Militino, A. F., and Arnholt, A. T. 2015. Probability and Statistics with R, Second Edition. Chapman & Hall / CRC.

Examples

Run this code
# NOT RUN {
# Boxplot
ggplot(data = RATBP, aes(x = group, y = mmHg)) + geom_boxplot()
ggplot(data = RATBP, aes(x = group, y = mmHg, fill = group)) + geom_boxplot() + 
guides(fill = "none") + labs(x = "", y = "drops in blood pressure in mm  of Hg") + 
scale_fill_brewer()
# }

Run the code above in your browser using DataLab