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.
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.)
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.)
Sort the data. All data must be sorted first before analysis in SUDAAN.
Calculate the weighted contribution of calcium from each food group using the PROC CROSSTAB procedure in SUDAAN.
*-------------------------------------------------------------------------;
* 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)
;
*-------------------------------------------------------------------------;