Vanderpump: Smoking and mortality in Whickham, England.

VanderpumpR Documentation

Smoking and mortality in Whickham, England.

Description

Data represents women participating in a health survey in Whickham, England in 1972-1974.

Usage

Vanderpump

Format

A labelled tibble with 1314 rows and 3 variables:

vstatus

Vitality status, factor with levels "Alive" and "Death".

smoker

Smoking status, factor with levels "Non-smoker" and "Smoker".

agegrp

Age group, factor with levels "18-44", "45-64" and "64+".

Source

Vanderpump, MP, et al (1996) Thyroid, 6:155-160.

Appleton, DR, French, JM and Vanderpump, PJ (1996) Ignoring a covariate: An example of Simpson's paradox. The American Statistician 50:340-341.

Vittinghoff, E, Glidden, DV, Shiboski, SC and McCulloh, CE (2005) Regression methods in Biostatistics. Springer.

Examples

require(dplyr, quietly = TRUE)
data(Vanderpump)

Vanderpump %>%
  select(vstatus, agegrp, smoker) %>%
  tbl_strata(
    strata = smoker,
    .tbl_fun = ~ .x %>%
      tbl_summary(by = agegrp)
  ) %>%
  cosm_sum(bold = TRUE, head_label = " ")

mhor(vstatus ~ agegrp / smoker, data = Vanderpump)

pubh documentation built on Nov. 14, 2023, 1:08 a.m.