Skip to content

Conversation

@caitlink12
Copy link

@caitlink12 caitlink12 commented Oct 10, 2025

included master survey cycles 2001-2018 to SDCGCB (pct_time_der dependent) in variable_details
created SDCGRES_A variable for master survey cycles 2001-2018 which is continuous value of SDCGRES. Note, for 2001 only categorical SDCGRES is available; therefore, SDCGRES_A takes mid-point of year range for each category (i.e. category 1 is 1-9 years so continuous value of 4.5yrs is assigned for SDCGRES_A). For 2003-2018, the real value of SDCGRES is continuous in master survey cycles so values are copied over for SDCGRES_A
created pct_time_der_A for master survey cycles 2001-2018 which takes DHHGAGE_cont, SDCGCB and SDCGRES_A (pct_time_der is derived using all continuous values and not converted categorical variables)

in variables.csv pct_time_der_A, SDCGCB, and SDCGRES_A are updated/included for master survey cycles 2001-2018

updated SDCGCBG to include master file surveys and appropriate categorization
updated SDCGRES to have master file surveys; updated SDCGRES_A to have master files surveys; for 2001 to have be in SDCGRES_A (continuous) took the midpoint of SDCGRES categories to convert this from categorical to continuous such that 2001 now has a continuous value to be included in SDCGRES_A
updated pct_time_der function to use continuous values of age and SDCGRES_A
renamed master survey cycle pct_time_der variable
removed public survey cycles from pct_time_der_A for 2001 master survey harmonization to continuous value
included master survey cycles into SDCGCBG variable
created continuous SDCGRES variable for master survey cycles to use to calculate pct-time-canada
new variable for master survey cycles deriving pct-time-canada using continuous SDCGRES
@yulric yulric changed the base branch from feature/v3.0.0-validation-infrastructure to diet-score October 15, 2025 19:06
Copy link
Contributor

@yulric yulric left a comment

Choose a reason for hiding this comment

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

The database names in the variables and variable details sheet are not consistent. The variables sheet uses _m whereas the variable details sheet uses _i. Can you fix that?

changed _i suffixes to _m suffixes for pct_time_der_A, SDCGCBG, and SDCGRES_A
@caitlink12
Copy link
Author

@yulric suffixes have been fixed

Copy link
Contributor

@yulric yulric left a comment

Choose a reason for hiding this comment

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

I'm still seeing _i suffixes in the SDCGRES variable in the variable details sheet

correct _i suffixes to _m suffixes for SDCGRES
@caitlink12
Copy link
Author

@yulric the suffixes for SDCGRES have been changed to _m

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