Package: cchsflow 2.1.0

Kitty Chen

cchsflow: Transforming and Harmonizing CCHS Variables

Supporting the use of the Canadian Community Health Survey (CCHS) by transforming variables from each cycle into harmonized, consistent versions that span survey cycles (currently, 2001 to 2018). CCHS data used in this library is accessed and adapted in accordance to the Statistics Canada Open Licence Agreement. This package uses rec_with_table(), which was developed from 'sjmisc' rec(). Lüdecke D (2018). "sjmisc: Data and Variable Transformation Functions". Journal of Open Source Software, 3(26), 754. <doi:10.21105/joss.00754>.

Authors:Doug Manuel [aut, cph], Warsame Yusuf [aut], Rostyslav Vyuha [aut], Kitty Chen [aut, cre], Carol Bennett [aut], Yulric Sequeira [ctb], The Ottawa Hospital [cph]

cchsflow_2.1.0.tar.gz
cchsflow_2.1.0.zip(r-4.5)cchsflow_2.1.0.zip(r-4.4)cchsflow_2.1.0.zip(r-4.3)
cchsflow_2.1.0.tgz(r-4.4-any)cchsflow_2.1.0.tgz(r-4.3-any)
cchsflow_2.1.0.tar.gz(r-4.5-noble)cchsflow_2.1.0.tar.gz(r-4.4-noble)
cchsflow_2.1.0.tgz(r-4.4-emscripten)cchsflow_2.1.0.tgz(r-4.3-emscripten)
cchsflow.pdf |cchsflow.html
cchsflow/json (API)
NEWS

# Install 'cchsflow' in R:
install.packages('cchsflow', repos = c('https://big-life-lab.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/big-life-lab/cchsflow/issues

Datasets:

On CRAN:

cchsopensciopenscience

6.02 score 12 stars 192 scripts 276 downloads 1 mentions 61 exports 34 dependencies

Last updated 9 months agofrom:6eee66676b. Checks:OK: 1 ERROR: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 16 2024
R-4.5-winERRORNov 16 2024
R-4.5-linuxERRORNov 16 2024
R-4.4-winERRORNov 16 2024
R-4.4-macERRORNov 16 2024
R-4.3-winERRORNov 16 2024
R-4.3-macERRORNov 16 2024

Exports:active_transport1_funactive_transport2_funactive_transport3_funadjusted_bmi_funadl_funadl_score_5_funage_cat_funALCDTTMALCDTYPALW_1ALW_2A1ALW_2A2ALW_2A3ALW_2A4ALW_2A5ALW_2A6ALW_2A7ALWDDLYALWDWKYbinge_drinker_funbmi_funbmi_fun_catCOPD_Emph_der_fun1COPD_Emph_der_fun2diet_score_fundiet_score_fun_catDPSDPPDPSDSFenergy_exp_funfood_insecurity_derGEN_02A2if_else2immigration_funis_equalLBFA_31ALBFA_31A_aLBFA_31A_blow_drink_long_funlow_drink_score_funlow_drink_score_fun1low_drink_short_funmerge_rec_datamultiple_conditions_fun1multiple_conditions_fun2pack_years_funpack_years_fun_catpct_time_funpct_time_fun_catRACDPAL_funrec_with_tableresp_condition_fun1resp_condition_fun2resp_condition_fun3set_data_labelsSMKDSTY_funSMKG040_funSMKG203_funSMKG207_funsmoke_simple_funSPS_5_funtime_quit_smoking_fun

Dependencies:bitbit64clicliprcpp11crayondatawizarddplyrfansiforcatsgenericsgluehavenhmsinsightlifecyclemagrittrpillarpkgconfigprettyunitsprogressR6readrrlangsjlabelledstringistringrtibbletidyselecttzdbutf8vctrsvroomwithr

Readme and manuals

Help Manual

Help pageTopics
Daily active transportation (2001-2005)active_transport1_fun
Daily active transportation (2007-2014)active_transport2_fun
Daily active transportation (2015-2018)active_transport3_fun
Adjusted Body Mass Index (BMI) derived variableadjusted_bmi_fun
Derived needs help with tasksadl_fun
The number of activities of daily living tasks that require help.adl_score_5_fun
Derived categorical ageage_cat_fun
Type of drinker (12 months)ALCDTTM
Type of drinkerALCDTYP
Any alcohol past weekALW_1
Number of drinks - SundayALW_2A1
Number of drinks - MondayALW_2A2
Number of drinks - TuesdayALW_2A3
Number of drinks - WednesdayALW_2A4
Number of drinks - ThursdayALW_2A5
Number of drinks - FridayALW_2A6
Number of drinks - SaturdayALW_2A7
Average daily alcohol consumptionALWDDLY
Number of drinks consumed in the past weekALWDWKY
Binge drinkingbinge_drinker_fun
Body Mass Index (BMI) derived variablebmi_fun
Categorical BMI (international standard)bmi_fun_cat
2001 CCHS PUMF subset data (200 respondents)cchs2001_p
2003 CCHS PUMF subset data (200 respondents)cchs2003_p
2005 CCHS PUMF subset data (200 respondents)cchs2005_p
2007-2008 CCHS PUMF subset data (200 respondents)cchs2007_2008_p
2009-2010 CCHS PUMF subset data (200 respondents)cchs2009_2010_p
2009 CCHS synthetic subset data (200 respondents)cchs2009_s
2010 CCHS PUMF subset data (200 respondents)cchs2010_p
2010 CCHS synthetic subset data (200 respondents)cchs2010_s
2011-2012 CCHS PUMF subset data (200 respondents)cchs2011_2012_p
2012 CCHS PUMF subset data (200 respondents)cchs2012_p
2012 CCHS synthetic subset data (200 respondents)cchs2012_s
2013-2014 CCHS PUMF subset data (200 respondents)cchs2013_2014_p
2014 CCHS PUMF subset data (200 respondents)cchs2014_p
2015-2016 CCHS PUMF subset data (200 respondents)cchs2015_2016_p
2017-2018 CCHS PUMF subset data (200 respondents)cchs2017_2018_p
Compare Value Based On Intervalcompare_value_based_on_interval
COPD_Emph_der_fun1COPD_Emph_der_fun1
COPD_Emph_der_fun2COPD_Emph_der_fun2
Diet scorediet_score_fun
Categorized diet scorediet_score_fun_cat
Depression Scale - Predicted ProbabilityDPSDPP
Derived Depression Scale - Short Form ScoreDPSDSF
Daily energy expenditure in leisure activityenergy_exp_fun
Food insecurityfood_insecurity_der
Satisfaction with life (GEN_02A/GEN_02A2)GEN_02A2
Get Data Variable Nameget_data_variable_name
if_else2if_else2
Immigration by ethnicity and settlementimmigration_fun
is equalis_equal
label_datalabel_data
Occupation Group (9 categories)LBFA_31A
Occupation Group (5 categories)LBFA_31A_a
Occupation Group (6 categories)LBFA_31A_b
Long term risks due to drinkinglow_drink_long_fun
Low drinking score (all cycles)low_drink_score_fun
Low drinking score (select cycles)low_drink_score_fun1
Short term risks due to drinkinglow_drink_short_fun
Merge recoded datamerge_rec_data
Number of chronic conditions (5 chronic conditions)multiple_conditions_fun1
Number of chronic conditions (6 chronic conditions)multiple_conditions_fun2
Smoking pack-yearspack_years_fun
Categorical smoking pack-yearspack_years_fun_cat
Percent time in Canadapct_time_fun
Categorical percent time in Canadapct_time_fun_cat
Participation and Activity LimitationRACDPAL_fun
Recode with Tablerec_with_table
recode_columnsrecode_columns
Recode NA formattingrecode_variable_NA_formating
resp_condition_fun1resp_condition_fun1
resp_condition_fun2resp_condition_fun2
resp_condition_fun3resp_condition_fun3
Set Data Labelsset_data_labels
Type of smokersSMKDSTY_fun
Age started smoking daily - daily/former daily smokersSMKG040_fun
Age started to smoke daily - daily smokerSMKG203_fun
Age started to smoke daily - former daily smokerSMKG207_fun
Simple smoking statussmoke_simple_fun
Five-item social provision scale (SPS-5)SPS_5_fun
Time since quit smokingtime_quit_smoking_fun
variable_details.csvvariable_details
variables.csvvariables