Skip to contents

Calculate the DASH for the DHQ3 data within 1 step

Usage

DASH_DHQ3(DATA_PATH)

Arguments

DATA_PATH

The file path for the data. The data is Detailed analysis file, ending with detail.csv

Value

The DASH and its component scores

Examples

data("DHQ3_exp_detailed")
DASH_DHQ3(DHQ3_exp_detailed)
#> [1] "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: 23 × 10
#>    `Respondent ID` DASH_ALL DASH_FRT DASH_VEG DASH_NUTSLEG DASH_WGRAIN
#>              <dbl>    <dbl>    <dbl>    <dbl>        <dbl>       <dbl>
#>  1               1       25        3        4            5           5
#>  2               2       29        3        3            5           5
#>  3               3       24        5        5            4           3
#>  4               4       23        5        1            2           3
#>  5               5       25        4        2            2           2
#>  6               6       19        1        1            1           3
#>  7               7       26        4        4            3           3
#>  8               8       20        3        4            4           3
#>  9               9       20        4        1            2           1
#> 10              10       20        1        2            3           5
#> # ℹ 13 more rows
#> # ℹ 4 more variables: DASH_LOWF_DAIRY <dbl>, DASH_SODIUM <dbl>,
#> #   DASH_REDPROC_MEAT <dbl>, DASH_SSB_FRTJ <dbl>