-
Notifications
You must be signed in to change notification settings - Fork 7
pct-time-canada #149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: diet-score
Are you sure you want to change the base?
pct-time-canada #149
Conversation
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
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
56f5f9e to
bcb0aff
Compare
yulric
left a comment
There was a problem hiding this 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?
|
@yulric suffixes have been fixed |
yulric
left a comment
There was a problem hiding this 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
|
@yulric the suffixes for SDCGRES have been changed to _m |
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