DASH_NHANES_FPED
DASH_NHANES_FPED.Rd
Calculate the DASH for the NHANES_FPED data (after 2005) within 1 step
Usage
DASH_NHANES_FPED(
FPED_IND_PATH = NULL,
NUTRIENT_IND_PATH = NULL,
FPED_IND_PATH2 = NULL,
NUTRIENT_IND_PATH2 = NULL,
SKIM_MILK_code = NULL,
LOWF_CHEESE_code = NULL,
SSB_code = NULL
)
Arguments
- FPED_IND_PATH
The file path for the FPED IND data. The file name should be like: fped_dr1iff.sas7bdat
- NUTRIENT_IND_PATH
The file path for the NUTRIENT IND data. The file name should be like: DR1IFF_J
- FPED_IND_PATH2
The file path for the FPED IND data for day 2. The file name should be like: fped_dr2iff.sas7bdat
- NUTRIENT_IND_PATH2
The file path for the NUTRIENT IND data for day 2. The file name should be like: DR2IFF_J
- SKIM_MILK_code
The food code for skim milk. The default food codes are from 17-18 FNDDS file.
- LOWF_CHEESE_code
The food code for low-fat cheese. The default food codes are from 17-18 FNDDS file.
- SSB_code
The food code for sugar-sweetened beverages (SSB). The default food codes are from 17-18 FNDDS file.
Examples
data("NHANES_20172018")
DASH_NHANES_FPED(NHANES_20172018$FPED_IND, NHANES_20172018$NUTRIENT_IND, NHANES_20172018$FPED_IND2, NHANES_20172018$NUTRIENT_IND2)
#> [1] "Since no SSB code is provided, the default SSB code from 17-18 FNDDS file is used."
#> [1] "Since no skim milk code is provided, the default skim milk code from 17-18 FNDDS file is used."
#> [1] "Since no low-fat cheese code is provided, the default low-fat cheese code from 17-18 FNDDS file is used."
#> [1] "Reminder: this DASH index uses quintiles to rank participants' food/drink serving sizes and then calculate DASH component scores, which may generate results that are specific to your study population but not comparable to other populations."
#> # A tibble: 6,490 × 10
#> SEQN DASH_ALL DASH_FRT DASH_VEG DASH_NUTSLEG DASH_WGRAIN DASH_LOWF_DAIRY
#> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 93704 27.5 4.5 1 3 3.5 5
#> 2 93705 24.5 2 3 4 3 5
#> 3 93707 25 2 2 3 4.5 5
#> 4 93708 27 2.5 3.5 4 3 5
#> 5 93710 27.5 3.5 1.5 3.5 3.5 5
#> 6 93711 31.5 4.5 4.5 5 4 5
#> 7 93712 24.5 3.5 3.5 4 4 5
#> 8 93713 29.5 4.5 4.5 3.5 3.5 5
#> 9 93714 21.5 2.5 1 3 4 5
#> 10 93715 22 2.5 1.5 3 3 5
#> # ℹ 6,480 more rows
#> # ℹ 3 more variables: DASH_SODIUM <dbl>, DASH_REDPROC_MEAT <dbl>,
#> # DASH_SSB_FRTJ <dbl>