Learn R Programming

SMIR (version 0.02)

toxaemia: Bradford toxaemia data

Description

The number of women giving birth to their first child who showed toxaemic signs (hypertension and/or proteinurea, classified as Yes or No) during pregnancy.

Usage

data(toxaemia)

Arguments

Format

A data frame with 60 observations on the following 4 variables.
response
a factor with levels HN HU NN NU
smoke
a factor with levels 0 1-19 20+
class
a factor with levels I II III IV V
count
a numeric vector

Source

Brown, P.J., Stone, J., and Ord-Smith, C. (1983). Toxaemic signs during pregnancy. Applied Statistics, 32, 69--72.

Examples

Run this code
data(toxaemia)
tox.prop.table1 <- with(toxaemia, prop.table(tapply(count,
 list(class = class, response = response, smoke = smoke),
 sum), c(1, 3))[, c(2, 1, 4, 3), 1:2])
tox.prop.table2 <- with(toxaemia, prop.table(tapply(count,
 list(class = class, response = response, smoke = smoke),
 sum), c(1, 3))[, c(2, 1, 4, 3), 3, drop = FALSE])

Run the code above in your browser using DataLab