Skip to content

Conversation

@yulric
Copy link
Contributor

@yulric yulric commented Jan 15, 2026

This PR updates the physical activity variables in the worksheets for the master file. The following variables were added/updated with each item linked to the commit with the change:

Recommend reviewing one commit at a time.

These changes were brought over from the phys-activity branch.

@yulric yulric changed the title V3 phys activity Master file physical activity changes Jan 15, 2026
PAC_8B,Time bike work/school,Time spent - biking to go work/school,Categorical,"cchs2007_2008_p, cchs2009_2010_p, cchs2010_p, cchs2011_2012_p, cchs2012_p, cchs2013_2014_p, cchs2014_p, cchs2009_s, cchs2010_s, cchs2012_s",[PAC_8B],Exercise,Health behaviour,N/A,,,2.2.0,2025-06-30,Variable metadata completed,,,active,
PACDEE,Physical activity,Daily energy expenditure - (D),Continuous,"cchs2001_p, cchs2003_p, cchs2005_p, cchs2007_2008_p, cchs2009_2010_p, cchs2010_p, cchs2011_2012_p, cchs2012_p, cchs2013_2014_p, cchs2014_p, cchs2009_s, cchs2010_s, cchs2012_s","cchs2001_p::PACADEE, cchs2003_p::PACCDEE, cchs2005_p::PACEDEE, [PACDEE]",Exercise,Health behaviour,METS,,,2.2.0,2025-06-30,Variable metadata completed,,,active,
PACDEE_cat3,Physical activity,Categorical daily energy expenditure,Categorical,"cchs2001_p, cchs2003_p, cchs2005_p, cchs2007_2008_p, cchs2009_2010_p, cchs2010_p, cchs2011_2012_p, cchs2012_p, cchs2013_2014_p, cchs2014_p, cchs2009_s, cchs2010_s, cchs2012_s","cchs2001_p::PACADEE, cchs2003_p::PACCDEE, cchs2005_p::PACEDEE, [PACDEE]",Exercise,Health behaviour,METS,,,2.2.0,2025-06-30,Variable metadata completed,,,active,
PACFLEI,Leisure physical activites,Leisure physical activity,Categorical,"cchs2001_m, cchs2005_m, cchs2007_2008_m, cchs2009_2010_m, cchs2011_2012_m, cchs2013_2014_m","cchs2001_m::PACAFLEI, cchs2005_m::PACEFLEI, [PACFLEI]",Exercise,Health behaviour,N/A,,,2.2.0,2025-06-30,Variable metadata completed,Yes,,active,
Copy link
Collaborator

@rafdoodle rafdoodle Jan 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PACFLEI exists in cchs2003_m as PACCFLEI according to Data Dictionary.

Copy link
Collaborator

@rafdoodle rafdoodle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've noticed that the worksheets for this branch only go up until 2017-2018. I only bring this up because the PAA_, PAA, and PAY variables are also in 2019-2020 and 2021.

Copy link
Contributor

@DougManuel DougManuel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review complete — Ready to merge with worksheet fixes

  • I went ahead and applied fixes based on validation review.
  • I updated variables to the most recent years just as an exercise of development and validation infrasctructure I created to support smoking updates. I wanted to see how well it worked de novo on physical activity. I don't expect we'll need/want to do the same for variables other than smoking and adminstrative variables (survey weights, etc.) that we need for current smoking studies.
  • I added files to cep-003-physcial-activity but those can be deleted. They include analyses of phsycial activity variables used to support this review.
  • Key comments are Quarto publication, or you can render yourself. I suggest the Quarto pub be deleted after we've merged the PR. (Just posted to facilitate the review).

Fixes included

  1. PACFLEI _i_m migration — All 5 rows now use Master suffix instead of deprecated ICES suffix
  2. PACFLEI dummyVariable naming — Fixed from cat_cat6 to PACFLEI_cat2_* convention
  3. PAC_4B label fix — Corrected "walking" to "biking" in variable labels
  4. 2019-2020 cycle extension — Added coverage for PAADVTRV, PAYDVTTR, active_transport, energy_exp
  5. PAADVWHO — New WHO physical activity classification variable (2015-2022 cycles)
  6. Added double year PUMF files, in addition to single years. i.e. cchs2007_2008_p. Double year PUMF data used for validation.

Validation

  • Integration test confirms rec_with_table() produces valid output for all variables
  • PUMF validation shows harmonised means consistent with ground truth (PACDEE: 2.02-2.32 kcal/kg/day)
  • See CEP-003 integration test for full validation report

Not addressed (intentionally deferred)

  • 2022 cycle for PAADVVIG — only this variable available in 2022 PUMF

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants