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

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

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

smoke_simple_fun()

Simple smoking status

time_quit_smoking_fun()

Time since quit smoking

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)

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