Skip to contents

Calculate the DASHI for the NHANES_MPED data (before 2005, 1999-2004) within 1 step for day 1, day 2, or day 1 and 2 combined (age >= 2 only)

Usage

DASHI_NHANES_MPED(
  MPED_PER_100_GRAM_PATH = NULL,
  WJFRT = NULL,
  NUTRIENT_PATH = NULL,
  NUTRIENT_IND_PATH = NULL,
  DEMO_PATH,
  NUTRIENT_PATH2 = NULL,
  NUTRIENT_IND_PATH2 = NULL
)

Arguments

MPED_PER_100_GRAM_PATH

The file path for the MPED per 100 gram data for the day 1 and day 2 data. The file name should be like: pyr_tot_d1.sas7bdat

WJFRT

The file path for the WJFRT data for the day 1 and day2 data. The file name should be like: wjfrt.sas7bdat

NUTRIENT_PATH

The file path for the NUTRIENT data for the day 1 data. The file name should be like: DR1TOT_J.XPT or DRXTOT_B.XPT

NUTRIENT_IND_PATH

The file path for the NUTRIENT_IND data for the day 1 data. The file name should be like: DR1IFF_J.XPT

DEMO_PATH

The file path for the DEMOGRAPHIC data. The file name should be like: DEMO_J.XPT

NUTRIENT_PATH2

The file path for the NUTRIENT2 data for the day 2 data. The file name should be like: DR2TOT_J.XPT

NUTRIENT_IND_PATH2

The file path for the NUTRIENT_IND2 data for the day 2 data The file name should be like: DR2IFF_J.XPT

Value

The DASHI and its component scores and serving sizes

Examples

data("NHANES_20032004")
DASHI_NHANES_MPED(MPED_PER_100_GRAM_PATH = NHANES_20032004$MPED_PER_100_GRAM, WJFRT = NHANES_20032004$WJFRT, NUTRIENT_PATH = NHANES_20032004$NUTRIENT, NUTRIENT_IND_PATH = NHANES_20032004$NUTRIENT_IND, DEMO_PATH = NHANES_20032004$DEMO, NUTRIENT_PATH2 = NHANES_20032004$NUTRIENT2, NUTRIENT_IND_PATH2 = NHANES_20032004$NUTRIENT_IND2)
#> # A tibble: 7,650 × 11
#>     SEQN DASHI_ALL DASHI_TOTAL_FAT DASHI_SAT_FAT DASHI_CHOLESTEROL DASHI_SODIUM
#>    <dbl>     <dbl>           <dbl>         <dbl>             <dbl>        <dbl>
#>  1 21005      2.28           0.321         0.585             0.550        0    
#>  2 21006      2.53           0.591         0.577             0.5          0    
#>  3 21007      2.97           0.5           0.546             0.5          0.300
#>  4 21008      1.54           0.185         0.313             0.381        0    
#>  5 21009      1.73           0             0.454             0.294        0.5  
#>  6 21010      4.92           0.812         0.435             0.781        1    
#>  7 21012      1.30           0.113         0.388             0            0    
#>  8 21013      2.94           0.410         0.614             0.968        0.672
#>  9 21014      5.17           0.725         0.373             0.742        0    
#> 10 21015      4.84           0.373         0.394             0.661        0.677
#> # ℹ 7,640 more rows
#> # ℹ 5 more variables: DASHI_PROTEIN <dbl>, DASHI_FIBER <dbl>,
#> #   DASHI_POTASSIUM <dbl>, DASHI_MAGNESIUM <dbl>, DASHI_CALCIUM <dbl>