Big-Life-Lab / cchsflow

Variable transformation and harmonization for the Canadian Community Health Survey
https://big-life-lab.github.io/cchsflow/
Other
11 stars 7 forks source link

Pack-year for recent cycles #115

Closed kittychenn closed 2 years ago

kittychenn commented 2 years ago

There was initially an issue with deriving pack-years for the recent cycles because of smoker type and former/daily smoker age variables.

For CCHS 2015-2018, smoker type was derived differently with different variables and categories compared to previous cycles. A derived function for smoker type was created for CCHS 2015-2018, which follows the smoker type derivation from previous cycles.

Age started smoking daily was combined for daily and former daily smokers for CCHS 2015-2018 - SMKG040. Previously they were separate variables. The SMKG040 variable was specific to respondents who answered type of smoker presently as daily OR smoked daily in lifetime (occasional/former smoker) as yes. Daily smoker is defined as those who responded daily smoker. Former daily smoker is defined as those who responded yes to smoked daily in lifetime. Derived functions to separate daily and former daily smokers were created for CCHS 2015-2018. Now SMKG203_cont and SMKG207_cont can be used for most cycles.

The pack-year function doesn't need to be altered and can now be used for most cycles.