Skip to content

Commit

Permalink
Merge pull request #104 from Big-Life-Lab/dev
Browse files Browse the repository at this point in the history
2015-onwards-update v1
  • Loading branch information
wyusuf068 authored Oct 25, 2021
2 parents 8366e1e + f4a4b20 commit 529b389
Show file tree
Hide file tree
Showing 187 changed files with 46,057 additions and 6,843 deletions.
12 changes: 8 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: cchsflow
Type: Package
Title: Transforming and Harmonizing CCHS Variables
Version: 1.8.3
Date: 2021-08-20
Version: 2.0.0
Date: 2021-10-25
Authors@R: c(
person(given = "Doug",
family = "Manuel",
Expand All @@ -17,6 +17,10 @@ Authors@R: c(
family = "Vyuha",
role = c("aut"),
email = "[email protected]"),
person(given = "Kitty",
family = "Chen",
role = c("aut"),
email = "[email protected]"),
person(given = "Carol",
family = "Bennett",
role = c("aut"),
Expand All @@ -38,7 +42,7 @@ Depends:
Description: 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
2014). CCHS data used in this library is accessed and adapted in
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
Expand All @@ -49,6 +53,6 @@ Encoding: UTF-8
LazyData: true
URL: https://github.com/Big-Life-Lab/cchsflow
BugReports: https://github.com/Big-Life-Lab/cchsflow/issues
RoxygenNote: 7.1.1
RoxygenNote: 7.1.2
Suggests:
testthat (>= 2.1.0)
12 changes: 12 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,32 @@ export(LBFA_31A)
export(LBFA_31A_a)
export(LBFA_31A_b)
export(RACDPAL_fun)
export(SMKG040_fun)
export(adjusted_bmi_fun)
export(adl_fun)
export(adl_score_5_fun)
export(age_cat_fun)
export(binge_drinker_fun)
export(bmi_fun)
export(bmi_fun_cat)
export(diet_score_fun)
export(diet_score_fun_cat)
export(energy_exp_fun)
export(food_insecurity_der)
export(if_else2)
export(immigration_fun)
export(is_equal)
export(low_drink_long_fun)
export(low_drink_score_fun)
export(low_drink_score_fun1)
export(low_drink_short_fun)
export(merge_rec_data)
export(multiple_conditions_fun1)
export(multiple_conditions_fun2)
export(pack_years_fun)
export(pack_years_fun_cat)
export(pct_time_fun)
export(pct_time_fun_cat)
export(rec_with_table)
export(resp_condition_fun1)
export(resp_condition_fun2)
Expand Down
50 changes: 50 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,53 @@
# cchsflow 2.0.0
2021-10-25

## Features
- Support for CCHS cycles up to 2018.

## Bug Fixes
- Fixes to `rec_with_table()` to support round bracket interval notation.

## Variables

- <font color = green> **New**</font> **ADL_01_A**: Help preparing meals. Used for CCHS 2015-2016.
- <font color = green> **New**</font> **ADL_02_A**: Help appointments/errands. Used for CCHS 2015-2016.
- <font color = green> **New**</font> **ADL_03_A**: Help housework. Used for CCHS 2015-2016.
- <font color = green> **New**</font> **ADL_04_A**: Help personal care. Used for CCHS 2015-2016.
- <font color = green> **New**</font> **ADL_05_A**: Help move inside house. Used for CCHS 2015-2016.
- <font color = green> **New**</font> **ADL_06_A**: Help personal finances. Used for CCHS 2015-2016.
- <font color = green> **New**</font> **ALC_005**: In lifetime, ever drank alcohol? Used for CCHS 2001-2008 and 2015-2018.
- <font color = green> **New**</font> **ALWDVSTR_der**: Derived variable for short term risks due to drinking. Used for all CCHS cycles.
- <font color = green> **New**</font> **ALWDVLTR_der**: Derived variable for long term risks due to drinking. Used for all CCHS cycles.
- <font color = green> **New**</font> **DEPDVSEV**: Depression scale - severity of depression. Used for CCHS 2015-2018.
- <font color = green> **New**</font> **diet_score_cat3**: Derived variable for categorical diet score. Used for all CCHS cycles.
- <font color = green> **New**</font> **EDUDR03**: Derived variable for highest level/education - 3 categories. Used for all cycles.
- <font color = green> **New**</font> **energy_exp**: Daily energy expenditure. Used for all cycles.
- <font color = green> **New**</font> **HUIDHSI_cat10**: Categorical Health Utility Index into 10 categories. Used for CCHS 2001-2016.
- <font color = green> **New**</font> **HUIDHSI_cat20**: Categorical Health Utility Index into 20 categories. Used for CCHS 2001-2016.
- <font color = green> **New**</font> **HUIDHSI_cat50**: Categorical Health Utility Index into 50 categories. Used for CCHS 2001-2016.
- <font color = green> **New**</font> **HWTGBMI_der_cat4**: Derived variable for categorical body mass index into 4 categories. Used for all CCHS cycles.
- <font color = green> **New**</font> **HWTGCOR**: Adjusted BMI. Used for CCHS 2015-2018.
- <font color = green> **New**</font> **HWTGCOR_der**: Derived variable for adjusted BMI. Used for all CCHS cycles.
- <font color = green> **New**</font> **immigration_der**: Derived variable for immigration categories. Used for all CCHS cycles.
- <font color = green> **New**</font> **low_drink_score**: Derived variable for low risk drinking score. Used for all CCHS cycles.
- <font color = green> **New**</font> **low_drink_score1**: Derived variable for low risk drinking score that includes never drank and former drinker categories. Used for CCHS 2001-2008 and 2015-2018.
- <font color = green> **New**</font> **PAA_045**: Sweat/breathe harder exercises - hours - 7d (18+ years old). Used for CCHS 2015-2016.
- <font color = green> **New**</font> **PAA_050**: Sweat/breathe harder exercises - minutes - 7d (18+ years old). Used for CCHS 2015-2016.
- <font color = green> **New**</font> **PAA_075**: Other physical activities - hours - 7d (18+ years old). Used for CCHS 2015-2016.
- <font color = green> **New**</font> **PAA_080**: Other physical activities - minutes - 7d (18+ years old). Used for CCHS 2015-2016.
- <font color = green> **New**</font> **PAADVDYS**: Active days - 7d (18+ years old). Used for CCHS 2015-2016.
- <font color = green> **New**</font> **PAADVVIG**: Vigorous activity over a week (18+ years old). Used for CCHS 2015-2016.
- <font color = green> **New**</font> **PAYDVADL**: Leisure activities - minutes - 7d (12-17 years old). Used for CCHS 2015-2016.
- <font color = green> **New**</font> **PAYDVDYS**: Active days - 7d (12-17 years old). Used for CCHS 2015-2016.
- <font color = green> **New**</font> **PAYDVTOA**: Other physical activities - minutes - 7d (12-17 years old). Used for CCHS 2015-2016.
- <font color = green> **New**</font> **PAYDVVIG**: Vigorous activities - minutes - 7d (12-17 years old). Used for CCHS 2015-2016.
- <font color = green> **New**</font> **pct_time_der_cat10**: Categorical percentage of time in Canada. Used for all CCHS cycles.
- <font color = green> **New**</font> **SMKDSTY_B**: Smoker status into 5 categories. Used for CCHS 2015-2018.
- <font color = green> **New**</font> **SMKDSTY_cat5**: Smoker status into 5 categories. Used for all CCHS cycles.
- <font color = green> **New**</font> **SMKG040**: Age started to smoke daily - daily/former daily smoker. Used for CCHS 2015-2018.
- <font color = green> **New**</font> **SMKG040_cont**: Derived variable for age started to smoke daily - daily/former daily smoker. Used for all CCHS cycles.
- <font color = green> **New**</font> **CCC_075**: Do you have high blood cholesterol or lipids? Used for CCHS 2015-2018.

# cchsflow 1.8.3
2021-08-20

Expand Down
Loading

0 comments on commit 529b389

Please sign in to comment.