adl_fun: Derived needs help with tasks

Description Usage Arguments Details Value Examples

Description

This derived variable (ADL_der) is based on the CCHS derived variable ADLF6R which flags respondents who need help with tasks based on their response to the various activities of daily living (ADL) variables.

Usage

1
adl_fun(ADL_01, ADL_02, ADL_03, ADL_04, ADL_05)

Arguments

ADL_01

Needs help preparing meals

ADL_02

Needs help getting to appointments/errands

ADL_03

Needs help doing housework

ADL_04

Needs help doing personal care

ADL_05

Needs help moving inside house

Details

The CCHS derived variable ADLF6R uses different ADL variables across the various CCHS survey cycles. This newly derived variable (ADL_der) uses ADL variables that are consistent across CCHS cycles.

In the 2001 CCHS survey cycle, the ADLF6R variable examines the following ADL variables:

  1. ADL_01 - Needs help preparing meals

  2. ADL_02 - Needs help getting to appointments/errands

  3. ADL_03 - Needs help doing housework

  4. ADL_04 - Needs help doing personal care

  5. ADL_05 - Needs help moving inside house

  6. ADL_07 - Needs help doing heavy household chores

In the 2003-2005 CCHS survey cycles, the ADLF6R variable examines the following ADL variables:

  1. ADL_01 - Needs help preparing meals

  2. ADL_02 - Needs help getting to appointments/errands

  3. ADL_03 - Needs help doing housework

  4. ADL_04 - Needs help doing personal care

  5. ADL_05 - Needs help moving inside house

  6. ADL_06 - Needs help doing finances

  7. ADL_07 - Needs help doing heavy household chores

In the 2007-2014 CCHS survey cycles, the ADLF6R variable examines the following ADL variables:

  1. ADL_01 - Needs help preparing meals

  2. ADL_02 - Needs help getting to appointments/errands

  3. ADL_03 - Needs help doing housework

  4. ADL_04 - Needs help doing personal care

  5. ADL_05 - Needs help moving inside house

  6. ADL_06 - Needs help doing finances

This newly derived variable (ADL_der) uses ADL_01 to ADL_05 which are consistent across all survey cycles. For any single CCHS survey year, it is appropriate to use ADLF6R. ADL_der is recommended when using multiple survey cycles.

Value

A derived variable (ADL_der) with 2 categories:

  1. - Needs help with tasks

  2. - Does not need help with tasks

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Using adl_fun() to create ADL_der values across CCHS cycles
# adl_fun() is specified in variable_details.csv along with the
# CCHS variables and cycles included.

# To transform ADL_der, use rec_with_table() for each CCHS cycle
# and specify ADL_der, along with the various ADL variables.
# Then by using merge_rec_data() you can combine ADL_der across cycles.

library(cchsflow)
adl2001 <- rec_with_table(
  cchs2001_p, c(
    "ADL_01", "ADL_02", "ADL_03", "ADL_04", "ADL_05", "ADL_der"
  )
)

head(adl2001)

adl2009_2010 <- rec_with_table(
  cchs2009_2010_p, c(
    "ADL_01", "ADL_02", "ADL_03", "ADL_04", "ADL_05", "ADL_der"
  )
)

tail(adl2009_2010)

combined_adl <- merge_rec_data(adl2001, adl2009_2010)

head(combined_adl)

tail(combined_adl)

# Using adl_fun() to generate to ADL_der based on user inputted values.
# 
# Let's say you do not need help preparing meals, you need help getting to
# appointments or errands, you need help doing housework, do not need help
# doing personal care, and do not need help moving inside the house. Using
# adl_fun() we can check if you need help doing tasks

ADL_der <- adl_fun(2, 1, 1, 2, 2)

print(ADL_der)

cchsflow documentation built on June 24, 2021, 1:07 a.m.