DASHI_NHANES_FPED
DASHI_NHANES_FPED.Rd
Calculate the DASHI (nutrient-based) for the NHANES_FPED data (after 2005) within 1 step
Arguments
- NUTRIENT_PATH
The file path for the NUTRIENT data. The file name should be like: DR1TOT_J.XPT
- NUTRIENT_PATH2
The file path for the NUTRIENT2 data. The file name should be like: DR2TOT_J.XPT
Examples
data("NHANES_20172018")
DASHI_NHANES_FPED(NUTRIENT_PATH = NHANES_20172018$NUTRIENT, NUTRIENT_PATH2 = NHANES_20172018$NUTRIENT2)
#> # A tibble: 6,491 × 11
#> SEQN DASHI_ALL DASHI_TOTAL_FAT DASHI_SAT_FAT DASHI_CHOLESTEROL DASHI_SODIUM
#> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 93704 4.72 0.768 0.840 0.680 0.5
#> 2 93705 2.49 0 0.472 0.5 0
#> 3 93707 1.15 0 0.0199 0 0.0844
#> 4 93708 2.80 0 0.173 0.5 0
#> 5 93710 4.21 0.653 0.490 0.5 0.5
#> 6 93711 3.62 0.0920 0.490 0.312 0.5
#> 7 93712 3.89 0.844 0.640 0.629 0
#> 8 93713 3.79 0.5 0.428 0.889 0.772
#> 9 93714 1.68 0 0 0 0
#> 10 93715 1.82 0 0.239 0.162 0.5
#> # ℹ 6,481 more rows
#> # ℹ 5 more variables: DASHI_PROTEIN <dbl>, DASHI_FIBER <dbl>,
#> # DASHI_POTASSIUM <dbl>, DASHI_MAGNESIUM <dbl>, DASHI_CALCIUM <dbl>