Learn R Programming

BSDA (version 1.01)

Allergy: Allergy medicines by adverse events

Description

Data used in Exercise 8.22

Usage

Allergy

Arguments

Format

A data frame with 3 observations on the following 4 variables.

C1.T

a factor with levels Drowsiness Headache Insomnia

Seldane

a numeric vector

Pseudoep

a numeric vector

Placebo

a numeric vector

Examples

Run this code
# NOT RUN {
attach(Allergy)
X <- as.matrix(Allergy[1:3,2:4])
chisq.test(X)
Xr <- as.matrix(Allergy[2:3,2:4])
chisq.test(Xr)
detach(Allergy)
# }

Run the code above in your browser using DataLab