Skip to contents

Calculate the AHEI (female only) for the ASA24 data within 1 step

Usage

AHEI_F_ASA24(DATA_PATH, SSB_code = NULL, RECALL_SUMMARIZE = TRUE)

Arguments

DATA_PATH

The file path for the data. The file name should be like: Items.csv

SSB_code

The food code for sugar sweetened beverage, default is the SSB code from 17-18 FNDDS file

RECALL_SUMMARIZE

Whether to summarize the recalls to the participant level, default is TRUE

Value

The AHEI and its component scores

Examples

data("ASA24_exp_detailed")
AHEI_F_ASA24(ASA24_exp_detailed, SSB_code = NULL, RECALL_SUMMARIZE = TRUE)
#> Since no SSB code is provided, the default SSB code from 17-18 FNDDS file is used.
#> RECALL_SUMMARIZE = TRUE, summarizing HEI2015 for ASA24 data by averaging over all possible recalls per person per day...
#> Reminder: this AHEI index is for female only. Please stratify your data first and provide female only data.
#> # A tibble: 21 × 15
#> # Groups:   UserName, UserID [21]
#>    UserName UserID          AHEI_ALL AHEI_NOETOH AHEI_VEG AHEI_FRT AHEI_WGRAIN_F
#>    <chr>    <chr>              <dbl>       <dbl>    <dbl>    <dbl>         <dbl>
#>  1 THR01    e6541891-8a22-…     52.2        49.7    5.36     0.988         6.74 
#>  2 THR02    dbb278b0-b589-…     44.9        42.4    6.94     0             0.302
#>  3 THR03    f0115426-e6f8-…     39.1        36.6    9.24     2.48          1.03 
#>  4 THR04    337d84a7-3bff-…     52.7        50.2    3.84     0             3.80 
#>  5 THR05    998f098a-8584-…     46.1        36.7    0        0             2.06 
#>  6 THR06    aae330db-8f22-…     45.1        42.6    3.16     2.56          0    
#>  7 THR07    76e0f3e1-8e17-…     51.8        49.3    7.66     1.58          3.24 
#>  8 THR08    24de994f-e06a-…     72.1        65.3    2.62     2.97         10    
#>  9 THR09    8f61ae64-6a82-…     48.6        46.1    0.202    3.16          2.10 
#> 10 THR10    b47ab1b8-e62b-…     58.6        56.1    5.27     0            10    
#> # ℹ 11 more rows
#> # ℹ 8 more variables: AHEI_NUTSLEG <dbl>, AHEI_N3FAT <dbl>, AHEI_PUFA <dbl>,
#> #   AHEI_SSB_FRTJ <dbl>, AHEI_REDPROC_MEAT <dbl>, AHEI_SODIUM <dbl>,
#> #   AHEI_ALCOHOL_F <dbl>, SSB_FRTJ_SERV <dbl>