Skip to contents

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

Usage

AHEIP_BLOCK(RAW_DATA)

Arguments

RAW_DATA

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

Value

The AHEIP index/score and its components

Examples

data("BLOCK_exp")
AHEIP_BLOCK(BLOCK_exp)
#> # A tibble: 5 × 11
#>   RESPONDENTID AHEIP_ALL AHEIP_VEG AHEIP_FRT AHEIP_WHITEREAD AHEIP_FIBER
#>          <dbl>     <dbl>     <dbl>     <dbl>           <dbl>       <dbl>
#> 1            1      38.3     1.58      3.69            0.351        5.41
#> 2            2      26.0     0.695     0.527           0.717        4.42
#> 3            3      51.6     3.94      2.63            0.477        8.3 
#> 4            4      47.4     1.79      5.39            0.756        9.93
#> 5            5      62.5     6.06      9.18            2.06         8.45
#> # ℹ 5 more variables: AHEIP_TRANS <dbl>, AHEIP_POLYSAT <dbl>,
#> #   AHEIP_CALCIUM <dbl>, AHEIP_FOLATE <dbl>, AHEIP_IRON <dbl>