Skip to contents

Calculate the MED dietary index (serving size based) per 1 day

Usage

MED_BLOCK(RAW_DATA)

Arguments

RAW_DATA

The raw data file that includes results and raw data of the dietary assessment

Value

The MED index/score and its components

Examples

data("BLOCK_exp")
MED_BLOCK(BLOCK_exp)
#> Reminder: this MED index uses medians to rank participants' food/drink serving sizes and then calculate MED component scores, which may generate results that are specific to your study population but not comparable to other populations.
#> # A tibble: 5 × 12
#>   RESPONDENTID MED_ALL MED_NOETOH MED_FRT MED_VEG MED_WGRAIN MED_LEGUMES
#>          <dbl>   <dbl>      <dbl>   <dbl>   <dbl>      <dbl>       <dbl>
#> 1            1       6          6       1       0          1           1
#> 2            2       4          4       0       0          0           1
#> 3            3       7          6       0       1          1           1
#> 4            4       3          3       1       1          1           0
#> 5            5       4          4       1       1          0           0
#> # ℹ 5 more variables: MED_NUTS <dbl>, MED_FISH <dbl>, MED_REDPROC_MEAT <dbl>,
#> #   MED_MONSATFAT <dbl>, MED_ALCOHOL <dbl>