Task 2a: How to Identify Important Food Group Sources of Nutrients Using SUDAAN

This section describes how to use SUDAAN to identify food group sources of nutrients along with standard errors.  To illustrate this, food sources of calcium are identified for the whole population, ages 2 and older, for 2001-2004.   In this example, a simplistic food grouping scheme based on the first digit of the USDA  food codes, was used for illustrative purposes.

 

Step 1: Create Folder

Create a folder to save the dataset, list the contents of each dataset, and create a dataset comprised of 4 years of data. (Program not shown.  See the full program in Additional Resources for more information.)

 

Step 2: Sort and Merge Datasets

Sort and then merge the demographic and individual food intake datasets.  Create new variables, as needed.  Note that the food groups are simply characterized by first digit of individual food code: milk and milk products; meat, poultry, fish and mixtures; eggs; legumes, nuts and seeds; grain products; fruits; vegetables; fats, oils and salad dressings; and sugar, sweeteners and beverages.  (Program not shown.  See the full program in Additional Resources for more information.)

 

Step 3: Sort the data

Sort the data.  All data must be sorted first before analysis in SUDAAN.

 

Step 4: Calculate the Weighted Contribution of Calcium from Each Food Group

Calculate the weighted contribution of calcium from each food group using the PROC CROSSTAB procedure in SUDAAN.

 

 

Identifying Food Group Sources of Calcium

Sample Code

*-------------------------------------------------------------------------;
* Use the PROC SORT procedure to sort the data.  Data must always be      ;
* sorted first when using SUDAAN.                                         ;
*                                                                         ;
* This example uses the CROSSTAB procedure in SUDAAN to calculate the     ;
* weighted contribution of calcium from multiple food groups.  This is an ;
* unconventional use of PROC CROSSTAB because this procedure is usually   ;
* applied to a categorical variable to obtain fractions of the population ;
* falling into each category.  However, in this example, the sample weight;
* is multiplied by the individual calcium intake to obtain the variable   ;
* WTD_CALC.  When this new variable is used as the WEIGHT variable, it    ;
* produces fractions of the population calcium intake falling into each   ;
* category of FOODGRP, which is the analysis variable in this example     ;
* specified in the TABLES statement.                                      ;
*                                                                         ;
* In this example, the domain analysis is handled by using a combination  ;
* of the SUBPOPN and SUBGROUP statements to only print out the desired    ;
* statistics (i.e. where INCOH=1)                                         ;
*-------------------------------------------------------------------------;