
DI_GM_NHANES_FPED
DI_GM_NHANES_FPED.RdCalculate the Dietary Index for Gut Microbiota using a binary cutoff for the NHANES_FPED data (after 2005) within 1 step
Usage
DI_GM_NHANES_FPED(
FPED_IND_PATH = NULL,
NUTRIENT_IND_PATH = NULL,
FPED_IND_PATH2 = NULL,
NUTRIENT_IND_PATH2 = NULL,
AVOCADO_CODE = NULL,
BROCCOLI_CODE = NULL,
CHICKPEA_CODE = NULL,
COFFEE_CODE = NULL,
CRANBERRY_CODE = NULL,
FERMENTED_DAIRY_CODE = NULL,
GREEN_TEA_CODE = NULL,
SOYBEAN_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_dr1iff.sas7bdat
- NUTRIENT_IND_PATH2
The file path for the NUTRIENT IND data for day 2. The file name should be like: DR2IFF_J
- AVOCADO_CODE
The code for avocado in the FPED data. The default food codes are from the FPED data for NHANES 2017-2018
- BROCCOLI_CODE
The code for broccoli in the FPED data. The default food codes are from the FPED data for NHANES 2017-2018
- CHICKPEA_CODE
The code for chickpea in the FPED data. The default food codes are from the FPED data for NHANES 2017-2018
- COFFEE_CODE
The code for coffee in the FPED data. The default food codes are from the FPED data for NHANES 2017-2018
- CRANBERRY_CODE
The code for cranberry in the FPED data. The default food codes are from the FPED data for NHANES 2017-2018
- GREEN_TEA_CODE
The code for green tea in the FPED data. The default food codes are from the FPED data for NHANES 2017-2018
- SOYBEAN_CODE
The code for soybean foods in the FPED data. The default food codes are from the FPED data for NHANES 2017-2018
- FERMENT_DAIRY_CODE
The code for fermented dairy in the FPED data. The default food codes are from the FPED data for NHANES 2017-2018
Examples
data("NHANES_20172018")
DI_GM_NHANES_FPED(FPED_IND_PATH = NHANES_20172018$FPED_IND, NUTRIENT_IND_PATH = NHANES_20172018$NUTRIENT_IND, FPED_IND_PATH2 = NHANES_20172018$FPED_IND2, NUTRIENT_IND_PATH2 = NHANES_20172018$NUTRIENT_IND2)
#> The default food codes for avocado from 17-18 FNDDS file is used.
#> The default food codes for broccoli from 17-18 FNDDS file is used.
#> The default food codes for chickpea from 17-18 FNDDS file is used.
#> The default food codes for coffee from 17-18 FNDDS file is used.
#> The default food codes for cranberry from 17-18 FNDDS file is used.
#> The default food codes for fermented dairy from 17-18 FNDDS file is used.
#> The default food codes for green tea from 17-18 FNDDS file is used.
#> The default food codes for soybean from 17-18 FNDDS file is used.
#> Calculating DI_GM index using day 1 data...
#> Reminder: this DI_GM index uses sex-specific medians to rank participants' food/drink serving sizes and then calculate DI_GM component scores, which may generate results that are specific to your study population but not comparable to other populations.
#> Calculating DI_GM index using day 2 data...
#> Reminder: this DI_GM index uses sex-specific medians to rank participants' food/drink serving sizes and then calculate DI_GM component scores, which may generate results that are specific to your study population but not comparable to other populations.
#> # A tibble: 6,488 × 17
#> SEQN RIAGENDR DI_GM_TOTAL DI_GM_AVOCADO DI_GM_BROCCOLI DI_GM_CHICKPEA
#> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 93704 1 4 0 0 0
#> 2 93705 2 4.5 0 0 0
#> 3 93707 1 3 0 0 0
#> 4 93708 2 4 0 0 0
#> 5 93710 2 3.5 0 0.5 0
#> 6 93711 1 5 0 0 0
#> 7 93712 1 3.5 0 0 0
#> 8 93713 1 5 0 0 0
#> 9 93714 2 4 0 0 0
#> 10 93715 1 3 0 0 0
#> # ℹ 6,478 more rows
#> # ℹ 11 more variables: DI_GM_COFFEE <dbl>, DI_GM_CRANBERRY <dbl>,
#> # DI_GM_FERMENTED_DAIRY <dbl>, DI_GM_FIBER <dbl>, DI_GM_GREEN_TEA <dbl>,
#> # DI_GM_SOYBEAN <dbl>, DI_GM_WHOLE_GRAIN <dbl>,
#> # DI_GM_TOTAL_FAT_PERCENTAGE <dbl>, DI_GM_PROCESSED_MEAT <dbl>,
#> # DI_GM_RED_MEAT <dbl>, DI_GM_REFINED_GRAIN <dbl>