# Sample Programs and Datasets

* Right-click *the program or dataset
you want to download. Then select "Save Target As" from the pop-up menu
and save the program or dataset to your computer. Left-clicking the
examples may result in garbled text being displayed as the browser tries
to interpret the file.

The datasets are intended to be used with the tutorial only, as they may contain a subset of the variables available. If you wish to conduct your own analyses, please download the most current and complete datasets from the NHANES website.

This tutorial was developed by our collaborators at the National Cancer Institute (NCI/NIH) based on NHANES data available prior to the year 2006. Please note that when new versions of SAS or SUDAAN are released, or updates are made to NHANES webpages and data files, this tutorial will NOT be updated accordingly. Therefore, when you use sample programs from this tutorial, please be advised that you will need to make modifications or changes to the SAS or SUDAAN sample codes in order to run them properly. If you have questions about this tutorial, please contact the National Cancer Institute (NCI) Applied Research Program.

#### Programs and Output

Module | Task | Sample Program | SAS Code | SAS Output | SUDAAN Code | SUDAAN Output |
---|---|---|---|---|---|---|

FFQMerge Program | SAS Code [SAS - 1 KB] | SAS Code [SAS - 1 KB] | ||||

Milk Program | SAS Code [SAS - 9 KB] | SAS Output [PDF - 12 KB] | SUDAAN Code [SAS - 9 KB] | SUDAAN Output [PDF - 23 KB] | ||

Food Source Program | SAS Code [SAS - 12 KB] | SAS Output [PDF - 40 KB] | SUDAAN Code [SAS - 12 KB] | SUDAAN Output [PDF - 35 KB] | ||

Total Calcium Program | SAS Code [SAS - 4 KB | SAS Output [PDF - 8 KB | N/A | N/A | ||

Supplement Program | SAS Code [SAS - 24 KB] | SAS Output [PDF - 47 KB] | SUDAAN Code [SAS - 25 KB] | SUDAAN Output [SAS - 50 KB] | ||

Outliers Program | SAS Code [SAS - 3 KB] | SAS Output [PDF - 9 KB] | N/A | N/A | ||

17 | 1 | Estimate Prevalence of Supplement Use Using Proportions Program | SAS Code [SAS - 2 KB] | SAS Output [PDF - 21 KB] | SUDAAN Code [SAS - 2 KB] | SUDAAN Output [PDF - 21 KB] |

17 | 2 | Calculate a Chi-Square Test Program | SAS Code [SAS - 2 KB] | SAS Output [PDF - 28 KB] | SUDAAN Code [SAS - 2 KB] | SUDAAN Output [PDF - 24 KB] |

17 | 3 | Perform Logistic Regression Program | SAS Code [SAS - 3 KB] | SAS Output [PDF - 25 KB] | SUDAAN Code [SAS - 4 KB] | SUDAAN Output [PDF - 37 KB] |

17 | 4 | Set Up a T-Test in NHANES Program | SAS Code [SAS - 2 KB] | SAS Output [PDF - 24 KB] | SUDAAN Code [SAS - 3 KB] | SUDAAN Output [PDF - 23 KB] |

17 | 5 | Perform Linear Regression Program | SAS Code [SAS - 3 KB] | SAS Output [PDF - 28 KB] | SUDAAN Code [SAS - 3 KB] | SUDAAN Output [PDF - 31 KB] |

18 | 4 | Estimate Standard Errors with Balanced Repeated Replication (BRR) Program | SAS Code [SAS - 2 KB] | SAS Output [PDF - 18 KB] | N/A | N/A |

19 | 1 | Evaluate the Effects of Covariates on Usual Intake of a Single Ubiquitously-Consumed Dietary Constituent Program | SAS Code [SAS - 9 KB] | SAS Output [PDF - 266 KB] | N/A | N/A |

19 | 2 | Evaluate the Effects of Covariates on Usual Intake of a Single Episodically-Consumed Dietary Constituent Program | SAS Code [SAS - 12 KB] | SAS Output [PDF - 923 KB] | N/A | N/A |

20 | 1 | Estimate the Distribution of Usual Intake for a Single Ubiquitously-consumed Dietary Constituent for One Population or Subpopulation using the NCI Method Program | SAS Code [SAS - 10 KB] | SAS Output [PDF - 107 KB] | N/A | N/A |

20 | 2 | Estimate Distributions of Usual Intake for a Single Ubiquitously-consumed Dietary Constituent with a Few Days of 24-hour Recalls for Subpopulations using a Covariate Program | SAS Code [SAS - 10 KB] | SAS Output [PDF - 142 KB] | N/A | N/A |

20 | 3 | Estimate Distributions of Usual Intake for a Single Episodically-consumed Dietary Constituent using the NCI Method Program | SAS Code [SAS - 10 KB] | SAS Output [PDF - 257 KB] | N/A | N/A |

20 | 4 | Estimate Distributions of Usual Intake for the Ratio of Two Ubiquitously-consumed Dietary Constituent Using the NCI Method Program | SAS Code [SAS - 23 KB] | SAS Output [PDF - 263 KB] | N/A | N/A |

21 | 2 | Examine the Relationship Between Usual Intake of a Single Ubiquitously-Consumed Dietary Constituent and Some Outcome Program | SAS Code [SAS - 17 KB] | SAS Output [PDF - 28 KB] | N/A | N/A |

21 | 3 | Examine the Relationship Between Usual Intake of a Single Episodically-consumed Dietary Constituent and Some Outcome Program | SAS Code [SAS - 15 KB] | SAS Output [PDF - 34 KB] | N/A | N/A |

22 | 1 | Estimate Distributions of Total Nutrient Intake Program | SAS Code [SAS - 19 KB] | SAS Output [PDF - 61 KB] | N/A | N/A |

#### Datasets

calcmilk.sas7bdat [SAS7BDAT - 809 KB]

demoadv.sas7bdat [SAS7BDAT - 5.7 MB]

demo_b.sas7bdat [SAS7BDAT - 2.0 MB]

demo_c.sas7bdat [SAS7BDAT - 2.5 MB]

demoosts.sas7bdat [SAS7BDAT - 1.5 MB]

dr1iff_c.sas7bdat [SAS7BDAT - 85.4 MB]

dr1tot_c.sas7bdat [SAS7BDAT - 12.5 MB]

drxiff_b.sas7bdat [SAS7BDAT - 82.7 MB]

dsq1_c.sas7bdat [SAS7BDAT - 405 KB]

dsq2_c.sas7bdat [SAS7BDAT - 737 KB]

DSPI.sas7bdat [SAS7BDAT - 217 KB]

DSII.sas7bdat [SAS7BDAT - 1.4 MB]

osq_c.sas7bdat [SAS7BDAT - 2.2 MB]

osteo_analysis_data.sas7bdat [SAS7BDAT - 5 KB]

##### Contact Us:

- National Center for Health Statistics

3311 Toledo Rd

Hyattsville, MD 20782 - 1 (800) 232-4636
- cdcinfo@cdc.gov