Transforming and Harmonizing CHMS Variables

Harmonizes variables from the Canadian Health Measures Survey (CHMS) across cycles 1-6 (2007-2019), producing consistent, analysis-ready variables for use with CHMS data. Recoding is data-driven through metadata tables and applied with recodeflow::rec_with_table() from the 'recodeflow' package. The recoding approach builds on sjmisc::rec() from the 'sjmisc' package (Ludecke 2018) .


chmsflow chmsflow logo

Lifecycle: development License: MIT R-CMD-check

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.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("chmsflow")

0.1.0 by Rafidul Islam, 4 months ago


https://github.com/Big-Life-Lab/chmsflow, https://big-life-lab.github.io/chmsflow/


Report a bug at https://github.com/Big-Life-Lab/chmsflow/issues


Browse source code at https://github.com/cran/chmsflow


Authors: Rafidul Islam [aut, cre, cph] (ORCID: , Douglas Manuel [aut, cph] (ORCID: , Therese Chan [ctb] , The Ottawa Hospital Research Institute [cph]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports dplyr, haven, purrr, recodeflow

Suggests DT, kableExtra, knitr, quarto, readr, testthat


See at CRAN