Skip to contents

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

Usage

DII_BLOCK(RAW_DATA)

Arguments

RAW_DATA

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

Value

The DII index/score and its components

Examples

data("BLOCK_exp")
DII_BLOCK(BLOCK_exp)
#> # A tibble: 5 × 34
#>   RESPONDENTID DII_ALL DII_NOETOH ALCOHOL  VITB12   VITB6 BCAROTENE CAFFEINE
#>          <dbl>   <dbl>      <dbl>   <dbl>   <dbl>   <dbl>     <dbl>    <dbl>
#> 1            1   3.74        3.46   0.278 -0.0682 -0.0157    0.464    0.0850
#> 2            2   2.65        2.37   0.278 -0.0428  0.0928    0.552    0.0845
#> 3            3  -1.59       -1.72   0.124  0.0986 -0.346     0.403    0.0849
#> 4            4  -1.13       -1.41   0.278 -0.0588 -0.192    -0.0426   0.0842
#> 5            5  -0.724      -1.00   0.278 -0.0758 -0.204    -0.584    0.0845
#> # ℹ 26 more variables: CARB <dbl>, CHOLES <dbl>, KCAL <dbl>, TOTALFAT <dbl>,
#> #   FIBER <dbl>, FOLICACID <dbl>, IRON <dbl>, MG <dbl>, MUFA <dbl>,
#> #   NIACIN <dbl>, N3FAT <dbl>, N6FAT <dbl>, PROTEIN <dbl>, PUFA <dbl>,
#> #   RIBOFLAVIN <dbl>, SATFAT <dbl>, SE <dbl>, THIAMIN <dbl>, TRANSFAT <dbl>,
#> #   VITA <dbl>, VITC <dbl>, VITD <dbl>, VITE <dbl>, ZN <dbl>, TEA <dbl>,
#> #   ISOFLAVONES <dbl>