HEI2015_NHANES_FPED
HEI2015_NHANES_FPED.Rd
Calculate the HEI2015 for the NHANES_FPED data (after 2005) within 1 step for day 1, day 2, or day 1 and 2 combined
Usage
HEI2015_NHANES_FPED(
FPED_PATH = NULL,
NUTRIENT_PATH = NULL,
DEMO_PATH,
FPED_PATH2 = NULL,
NUTRIENT_PATH2 = NULL
)
Arguments
- FPED_PATH
The file path for the FPED data. The file name should be like: fped_dr1tot_1112.sas7bdat
- NUTRIENT_PATH
The file path for the NUTRIENT data. The file name should be like: DR1TOT_J.XPT
- DEMO_PATH
The file path for the DEMOGRAPHIC data. The file name should be like: DEMO_J.XPT
- FPED_PATH2
The file path for the FPED2 data. The file name should be like: fped_DR2tot_1112.sas7bdat
- NUTRIENT_PATH2
The file path for the NUTRIENT2 data. The file name should be like: DR2TOT_J.XPT
Examples
data("NHANES_20172018")
HEI2015_NHANES_FPED(FPED_PATH = NHANES_20172018$FPED, NUTRIENT_PATH = NHANES_20172018$NUTRIENT, DEMO_PATH = NHANES_20172018$DEMO, FPED_PATH2 = NHANES_20172018$FPED2, NUTRIENT_PATH2 = NHANES_20172018$NUTRIENT2)
#> # A tibble: 6,177 × 15
#> SEQN HEI2015_ALL HEI2015_TOTALFRT HEI2015_FRT HEI2015_VEG HEI2015_GREENNBEAN
#> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 93704 61.7 5 2.5 1.55 0
#> 2 93705 43.0 0.0759 0 3.46 4.83
#> 3 93707 38.9 0 0 2.09 0
#> 4 93708 49.9 1.22 2.45 3.20 0
#> 5 93711 69.0 3.57 2.85 3.75 4.27
#> 6 93712 46.4 2.5 2.5 2.42 2.5
#> 7 93713 55.4 4.84 5 3.47 1.13
#> 8 93714 36.1 0.321 0.617 1.85 0
#> 9 93715 30.7 0.777 1.55 0.614 0
#> 10 93716 65.0 5 5 4.03 4.73
#> # ℹ 6,167 more rows
#> # ℹ 9 more variables: HEI2015_TOTALPRO <dbl>, HEI2015_SEAPLANTPRO <dbl>,
#> # HEI2015_WHOLEGRAIN <dbl>, HEI2015_DAIRY <dbl>, HEI2015_FATTYACID <dbl>,
#> # HEI2015_REFINEDGRAIN <dbl>, HEI2015_SODIUM <dbl>, HEI2015_ADDEDSUGAR <dbl>,
#> # HEI2015_SATFAT <dbl>