Transforming and Harmonizing CCHS Variables
Daily active transportation (2001-2005)
Daily active transportation (2007-2014)
Daily active transportation (2015-2018)
Adjusted Body Mass Index (BMI) derived variable
Derived needs help with tasks
The number of activities of daily living tasks that require help.
Derived categorical age
Type of drinker (12 months)
Type of drinker
Any alcohol past week
Number of drinks - Sunday
Number of drinks - Monday
Number of drinks - Tuesday
Number of drinks - Wednesday
Number of drinks - Thursday
Number of drinks - Friday
Number of drinks - Saturday
Average daily alcohol consumption
Number of drinks consumed in the past week
Binge drinking
Body Mass Index (BMI) derived variable
Categorical BMI (international standard)
Compare Value Based On Interval
COPD_Emph_der_fun1
COPD_Emph_der_fun2
Diet score
Categorized diet score
Depression Scale - Predicted Probability
Derived Depression Scale - Short Form Score
Daily energy expenditure in leisure activity
Food insecurity
Satisfaction with life (GEN_02A/GEN_02A2)
Get Data Variable Name
if_else2
Immigration by ethnicity and settlement
is equal
label_data
Occupation Group (9 categories)
Occupation Group (5 categories)
Occupation Group (6 categories)
Long term risks due to drinking
Low drinking score (all cycles)
Low drinking score (select cycles)
Short term risks due to drinking
Merge recoded data
Number of chronic conditions (5 chronic conditions)
Number of chronic conditions (6 chronic conditions)
Smoking pack-years
Categorical smoking pack-years
Percent time in Canada
Categorical percent time in Canada
Participation and Activity Limitation
Recode with Table
recode_columns
Recode NA formatting
resp_condition_fun1
resp_condition_fun2
resp_condition_fun3
Set Data Labels
Type of smokers
Age started smoking daily - daily/former daily smokers
Age started to smoke daily - daily smoker
Age started to smoke daily - former daily smoker
Simple smoking status
Five-item social provision scale (SPS-5)
Time since quit smoking
Supporting the use of the Canadian Community Health Survey (CCHS) by transforming variables from each cycle into harmonized, consistent versions that span survey cycles (currently, 2001 to 2018). CCHS data used in this library is accessed and adapted in accordance to the Statistics Canada Open Licence Agreement. This package uses rec_with_table(), which was developed from 'sjmisc' rec(). Lüdecke D (2018). "sjmisc: Data and Variable Transformation Functions". Journal of Open Source Software, 3(26), 754. <doi:10.21105/joss.00754>.
Useful links