Skip to contents

chmsflow harmonizes variables from the Canadian Health Measures Survey (CHMS) across cycles 1–6 (2007–2019), producing consistent, analysis-ready datasets.

library(chmsflow)

# Harmonize ethnicity from cycle 3 in one call
cycle3_ethnicity <- recodeflow::rec_with_table(
  cycle3, "pgdcgt",
  variable_details = variable_details
)

Installation

# Install from CRAN
install.packages("chmsflow")

# Install from GitHub
devtools::install_github("Big-Life-Lab/chmsflow")

For use at a Research Data Centre (RDC), see vignette("using_chmsflow_at_an_rdc").

Documentation

Contributing

Contributions are welcome – see the contributing guide.

Statistics Canada attribution

The dummy data included in this package is for illustrative purposes only and does not contain any real data from Statistics Canada.

This package is adapted from Statistics Canada, Canadian Health Measures Survey Cycles 1–6 (2007 to 2019), accessed June 2023. This does not constitute an endorsement by Statistics Canada of this product.