Skip to contents

Calculate the MED for the DHQ3 data within 1 step

Usage

MED_DHQ3(DATA_PATH)

Arguments

DATA_PATH

The file path for the data. The data is Total Daily Results file, ending with results.csv

Value

The MED and its component scores

Examples

data("DHQ3_exp")
MED_DHQ3(DHQ3_exp)
#> # A tibble: 23 × 12
#>    RESPONDENTID MED_ALL MED_NOETOH MED_FRT MED_VEG MED_WGRAIN MED_LEGUMES
#>           <dbl>   <dbl>      <dbl>   <dbl>   <dbl>      <dbl>       <dbl>
#>  1            1       5          5       1       1          1           1
#>  2            2       7          7       1       1          1           1
#>  3            3       6          6       1       1          1           1
#>  4            4       4          4       1       0          1           0
#>  5            5       2          2       1       0          0           0
#>  6            6       3          3       0       0          1           0
#>  7            7       4          4       1       1          0           1
#>  8            8       4          4       0       1          0           1
#>  9            9       2          1       1       0          0           0
#> 10           10       5          5       0       0          1           1
#> # ℹ 13 more rows
#> # ℹ 5 more variables: MED_NUTS <dbl>, MED_FISH <dbl>, MED_REDPROC_MEAT <dbl>,
#> #   MED_MONSATFAT <dbl>, MED_ALCOHOL <dbl>