DASH_ASA24
DASH_ASA24.Rd
Calculate the DASH for the ASA24 data within 1 step
Usage
DASH_ASA24(
DATA_PATH,
SKIM_MILK_code = NULL,
LOWF_CHEESE_code = NULL,
SSB_code = NULL,
RECALL_SUMMARIZE = TRUE
)
Arguments
- DATA_PATH
The file path for the data. The file name should be like: Items.csv
- SKIM_MILK_code
The food code for skim milk, default is the skim milk code from 17-18 FNDDS file
- LOWF_CHEESE_code
The food code for low-fat cheese, default is the low-fat cheese code from 17-18 FNDDS file
- SSB_code
The food code for sugar sweetened beverage, default is the SSB code from 17-18 FNDDS file
- RECALL_SUMMARIZE
Whether to summarize the recalls to the person level, default is TRUE
Examples
data("ASA24_exp_detailed")
DASH_ASA24(ASA24_exp_detailed, SKIM_MILK_code = NULL, LOWF_CHEESE_code = NULL, SSB_code = NULL, RECALL_SUMMARIZE = TRUE)
#> Since no SSB code is provided, the default SSB code from 17-18 FNDDS file is used.
#> Since no skim milk code is provided, the default skim milk code from 17-18 FNDDS file is used.
#> Since no low-fat cheese code is provided, the default low-fat cheese code from 17-18 FNDDS file is used.
#> RECALL_SUMMARIZE = TRUE, summarizing HEI2015 for ASA24 data by averaging over all possible recalls per person per day...
#> Reminder: this DASH index uses quintiles to rank participants' food/drink serving sizes and then calculate DASH component scores, which may generate results that are specific to your study population but not comparable to other populations.
#> # A tibble: 21 × 11
#> # Groups: UserName, UserID [21]
#> UserName UserID DASH_ALL DASH_FRT DASH_VEG DASH_NUTSLEG DASH_WGRAIN
#> <chr> <chr> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 THR01 e6541891-8a22-4… 28 5 5 5 5
#> 2 THR02 dbb278b0-b589-4… 32 5 5 5 5
#> 3 THR03 f0115426-e6f8-4… 28 5 5 5 5
#> 4 THR04 337d84a7-3bff-4… 28 1 5 5 5
#> 5 THR05 998f098a-8584-4… 16 1 1 1 5
#> 6 THR06 aae330db-8f22-4… 24 5 5 1 1
#> 7 THR07 76e0f3e1-8e17-4… 28 5 5 1 5
#> 8 THR08 24de994f-e06a-4… 36 5 5 5 5
#> 9 THR09 8f61ae64-6a82-4… 28 5 5 5 5
#> 10 THR10 b47ab1b8-e62b-4… 36 5 5 5 5
#> # ℹ 11 more rows
#> # ℹ 4 more variables: DASH_LOWF_DAIRY <dbl>, DASH_SODIUM <dbl>,
#> # DASH_REDPROC_MEAT <dbl>, DASH_SSB_FRTJ <dbl>