Skip to content

Commit 721628a

Browse files
committed
Refresh cchsflow worksheet snapshot with cat5, SMKG040, and SMKG035 fixes
Pull in three further cchsflow v3 worksheet repairs (now in upstream PR Big-Life-Lab/cchsflow#186): - SMKDSTY_cat5 2015+ recoded to the post-2015 SMKDVSTY codes; former daily smokers are no longer classified as occasional, never-smokers no longer NA(b), and time_quit_smoking_daily now derives for 2015+ cycles (25% non-missing in 2015-16, matching the former-daily share). - SMKG040/SMKG040_cont no longer claim cchs2019_2020_p (raw SMKG040 absent from the 2019-20 PUMF); matching claim dropped from cshm-variables.csv. - SMKG01C_cont maps cchs2015_2016_p code 11 to NA(a): StatCan shipped the 2015-16 PUMF with valid skip and not stated pooled into SMKG035 code 11, which the uniform midpoint rule turned into age 55 at first cigarette for ~44k never-smokers. age_first_cigarette for 2015-16 returns to 58.8% non-missing (median 16) from a corrupt 100%. Forensics: Big-Life-Lab/cchsflow-data#3.
1 parent f0b3c9d commit 721628a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

worksheets/cchsflow-variable-details.csv

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3282,7 +3282,8 @@ SMKG01C_cont,N/A,cont,"cchs2005_p, cchs2007_2008_p, cchs2009_2010_p, cchs2010_p,
32823282
SMKG01C_cont,N/A,cont,"cchs2005_p, cchs2007_2008_p, cchs2009_2010_p, cchs2010_p, cchs2011_2012_p, cchs2012_p, cchs2013_2014_p, cchs2014_p, cchs2015_2016_p, cchs2017_2018_p, cchs2019_2020_p, cchs2022_p, cchs2023_p","cchs2005_p::SMKEG01C, cchs2015_2016_p::SMKG035, cchs2017_2018_p::SMKG035, cchs2019_2020_p::SMKG035, cchs2022_p::CSS_10, cchs2023_p::CSS_10, [SMKG01C]",,cat,37,11,35-39 years,Midpoint of 35-39 years,years,8,35-39 years,Age 1st cig,Age smoked first whole cigarette,PUMF: midpoint imputation from grouped categories,3.0.0-alpha,2026-01-04,active,Removed _s/_i. Shorter labels. Added PUMF 2019-2021.,,
32833283
SMKG01C_cont,N/A,cont,"cchs2005_p, cchs2007_2008_p, cchs2009_2010_p, cchs2010_p, cchs2011_2012_p, cchs2012_p, cchs2013_2014_p, cchs2014_p, cchs2015_2016_p, cchs2017_2018_p, cchs2019_2020_p, cchs2022_p, cchs2023_p","cchs2005_p::SMKEG01C, cchs2015_2016_p::SMKG035, cchs2017_2018_p::SMKG035, cchs2019_2020_p::SMKG035, cchs2022_p::CSS_10, cchs2023_p::CSS_10, [SMKG01C]",,cat,42,11,40-44 years,Midpoint of 40-44 years,years,9,40-44 years,Age 1st cig,Age smoked first whole cigarette,PUMF: midpoint imputation from grouped categories,3.0.0-alpha,2026-01-04,active,Removed _s/_i. Shorter labels. Added PUMF 2019-2021.,,
32843284
SMKG01C_cont,N/A,cont,"cchs2005_p, cchs2007_2008_p, cchs2009_2010_p, cchs2010_p, cchs2011_2012_p, cchs2012_p, cchs2013_2014_p, cchs2014_p, cchs2015_2016_p, cchs2017_2018_p, cchs2019_2020_p, cchs2022_p, cchs2023_p","cchs2005_p::SMKEG01C, cchs2015_2016_p::SMKG035, cchs2017_2018_p::SMKG035, cchs2019_2020_p::SMKG035, cchs2022_p::CSS_10, cchs2023_p::CSS_10, [SMKG01C]",,cat,47,11,45-49 years,Midpoint of 45-49 years,years,10,45-49 years,Age 1st cig,Age smoked first whole cigarette,PUMF: midpoint imputation from grouped categories,3.0.0-alpha,2026-01-04,active,Removed _s/_i. Shorter labels. Added PUMF 2019-2021.,,
3285-
SMKG01C_cont,N/A,cont,"cchs2005_p, cchs2007_2008_p, cchs2009_2010_p, cchs2010_p, cchs2011_2012_p, cchs2012_p, cchs2013_2014_p, cchs2014_p, cchs2015_2016_p, cchs2017_2018_p, cchs2019_2020_p, cchs2022_p, cchs2023_p","cchs2005_p::SMKEG01C, cchs2015_2016_p::SMKG035, cchs2017_2018_p::SMKG035, cchs2019_2020_p::SMKG035, cchs2022_p::CSS_10, cchs2023_p::CSS_10, [SMKG01C]",,cat,55,11,50+ years,Assumed midpoint for 50+,years,11,50+ years,Age 1st cig,Age smoked first whole cigarette,PUMF: midpoint imputation from grouped categories,3.0.0-alpha,2026-01-04,active,Removed _s/_i. Shorter labels. Added PUMF 2019-2021.,,
3285+
SMKG01C_cont,N/A,cont,"cchs2005_p, cchs2007_2008_p, cchs2009_2010_p, cchs2010_p, cchs2011_2012_p, cchs2012_p, cchs2013_2014_p, cchs2014_p, cchs2017_2018_p, cchs2019_2020_p, cchs2022_p, cchs2023_p","cchs2005_p::SMKEG01C, cchs2017_2018_p::SMKG035, cchs2019_2020_p::SMKG035, cchs2022_p::CSS_10, cchs2023_p::CSS_10, [SMKG01C]",,cat,55,11,50+ years,Assumed midpoint for 50+,years,11,50+ years,Age 1st cig,Age smoked first whole cigarette,PUMF: midpoint imputation from grouped categories,3.0.0-alpha,2026-01-04,active,Removed _s/_i. Shorter labels. Added PUMF 2019-2021.,,
3286+
SMKG01C_cont,N/A,cont,"cchs2015_2016_p",cchs2015_2016_p::SMKG035,,cat,NA::a,11,not applicable,not applicable,years,11,50+ years,Age 1st cig,Age smoked first whole cigarette,StatCan defect in 2015-2016 PUMF: SMKG035 code 11 pools valid skip (~44k) and not stated (~1.3k) with true age 50+ (~95); official data dictionary lists 11 = 45737 with no 96/99 rows. Mapped to NA::a (dominant class). See cchsflow-data#3.,3.0.0-alpha,2026-01-04,active,Added 2015-2016 exception row for StatCan SMKG035 defect.,,
32863287
SMKG01C_cont,N/A,cont,"cchs2005_p, cchs2007_2008_p, cchs2009_2010_p, cchs2010_p, cchs2011_2012_p, cchs2012_p, cchs2013_2014_p, cchs2014_p, cchs2015_2016_p, cchs2017_2018_p, cchs2019_2020_p, cchs2022_p, cchs2023_p","cchs2005_p::SMKEG01C, cchs2015_2016_p::SMKG035, cchs2017_2018_p::SMKG035, cchs2019_2020_p::SMKG035, cchs2022_p::CSS_10, cchs2023_p::CSS_10, [SMKG01C]",,cat,NA::a,11,not applicable,not applicable,years,96,not applicable,Age 1st cig,Age smoked first whole cigarette,PUMF: midpoint imputation from grouped categories,3.0.0-alpha,2026-01-04,active,Removed _s/_i. Shorter labels. Added PUMF 2019-2021.,,
32873288
SMKG01C_cont,N/A,cont,"cchs2005_p, cchs2007_2008_p, cchs2009_2010_p, cchs2010_p, cchs2011_2012_p, cchs2012_p, cchs2013_2014_p, cchs2014_p, cchs2015_2016_p, cchs2017_2018_p, cchs2019_2020_p, cchs2022_p, cchs2023_p","cchs2005_p::SMKEG01C, cchs2015_2016_p::SMKG035, cchs2017_2018_p::SMKG035, cchs2019_2020_p::SMKG035, cchs2022_p::CSS_10, cchs2023_p::CSS_10, [SMKG01C]",,cat,NA::b,11,missing,missing,years,"[97,99]",don't know (97); refusal (98); not stated (99),Age 1st cig,Age smoked first whole cigarette,PUMF: midpoint imputation from grouped categories,3.0.0-alpha,2026-01-04,active,Removed _s/_i. Shorter labels. Added PUMF 2019-2021.,,
32883289
SMKG01C_cont,N/A,cont,"cchs2005_p, cchs2007_2008_p, cchs2009_2010_p, cchs2010_p, cchs2011_2012_p, cchs2012_p, cchs2013_2014_p, cchs2014_p, cchs2015_2016_p, cchs2017_2018_p, cchs2019_2020_p, cchs2022_p, cchs2023_p","cchs2005_p::SMKEG01C, cchs2015_2016_p::SMKG035, cchs2017_2018_p::SMKG035, cchs2019_2020_p::SMKG035, cchs2022_p::CSS_10, cchs2023_p::CSS_10, [SMKG01C]",,cat,NA::b,11,missing,missing,years,else,else,Age 1st cig,Age smoked first whole cigarette,PUMF: midpoint imputation from grouped categories,3.0.0-alpha,2026-01-04,active,Removed _s/_i. Shorter labels. Added PUMF 2019-2021.,,

0 commit comments

Comments
 (0)