pubh (version 1.3.2)

Vanderpump: Smoking and mortality in Whickham, England.

Description

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

Usage

Vanderpump

Arguments

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+".

Examples

Run this code
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)

Run the code above in your browser using DataLab