Worksheets

Model Specification Worksheets

variables

variables.csv

variable_details

variable_details.csv

Derived variable functions

Functions for deriving custom CCHS variables

bmi_fun()

Body Mass Index (BMI) derived variable

adjusted_bmi_fun()

Adjusted Body Mass Index (BMI) derived variable

bmi_fun_cat()

Categorical BMI (international standard)

pack_years_fun()

Smoking pack-years

pct_time_fun()

Percent time in Canada

resp_condition_fun1()

resp_condition_fun1

resp_condition_fun2()

resp_condition_fun2

resp_condition_fun3()

resp_condition_fun3

age_cat_fun()

Derived categorical age

binge_drinker_fun()

Binge drinking

multiple_conditions_fun1()

Number of chronic conditions (5 chronic conditions)

multiple_conditions_fun2()

Number of chronic conditions (6 chronic conditions)

adl_fun()

Derived needs help with tasks

RACDPAL_fun()

Participation and Activity Limitation

adl_score_5_fun()

The number of activities of daily living tasks that require help.

COPD_Emph_der_fun1()

COPD_Emph_der_fun1

COPD_Emph_der_fun2()

COPD_Emph_der_fun2

diet_score_fun()

Diet score

diet_score_fun_cat()

Categorized diet score

smoke_simple_fun()

Simple smoking status

time_quit_smoking_fun()

Time since quit smoking

low_drink_short_fun()

Short term risks due to drinking

low_drink_long_fun()

Long term risks due to drinking

low_drink_score_fun()

Low drinking score (all cycles)

low_drink_score_fun1()

Low drinking score (select cycles)

immigration_fun()

Immigration by ethnicity and settlement

pct_time_fun_cat()

Categorical percent time in Canada

energy_exp_fun()

Daily energy expenditure in leisure activity

SMKG040_fun()

Age started smoking daily - daily/former daily smokers

pack_years_fun_cat()

Categorical smoking pack-years

Potentially problematic variables

Derived variables in cchsflow that users may run into issues with

ALWDWKY()

Number of drinks consumed in the past week

ALWDDLY()

Average daily alcohol consumption

ALCDTYP()

Type of drinker

ALCDTTM()

Type of drinker (12 months)

DPSDSF()

Derived Depression Scale - Short Form Score

DPSDPP()

Depression Scale - Predicted Probability

food_insecurity_der()

Food insecurity

GEN_02A2()

Satisfaction with life (GEN_02A/GEN_02A2)

LBFA_31A()

Occupation Group (9 categories)

LBFA_31A_a()

Occupation Group (5 categories)

LBFA_31A_b()

Occupation Group (6 categories)

CCHS datasets

Datasets for each CCHS cycle

cchs2001_p

2001 CCHS PUMF subset data (200 respondents)

cchs2003_p

2003 CCHS PUMF subset data (200 respondents)

cchs2005_p

2005 CCHS PUMF subset data (200 respondents)

cchs2007_2008_p

2007-2008 CCHS PUMF subset data (200 respondents)

cchs2009_2010_p

2009-2010 CCHS PUMF subset data (200 respondents)

cchs2010_p

2010 CCHS PUMF subset data (200 respondents)

cchs2011_2012_p

2011-2012 CCHS PUMF subset data (200 respondents)

cchs2012_p

2012 CCHS PUMF subset data (200 respondents)

cchs2013_2014_p

2013-2014 CCHS PUMF subset data (200 respondents)

cchs2014_p

2014 CCHS PUMF subset data (200 respondents)

cchs2015_2016_p

2015-2016 CCHS PUMF subset data (200 respondents)

cchs2017_2018_p

2017-2018 CCHS PUMF subset data (200 respondents)

Processing functions

Functions used to manipulate CCHS datasets

rec_with_table()

Recode with Table

set_data_labels()

Set Data Labels

merge_rec_data()

Merge recoded data

Utility functions

Utility functions that are used in other cchsflow functions

if_else2()

if_else2