This section describes how to use SAS to estimate a ratio of means for all adults and for males and females separately. To illustrate this, the sum of calcium from milk is divided by the sum of total calcium for each population group as an example.
Sorting is not a necessary first step in SAS as it is in SUDAAN. Therefore, properly weighted estimated means and standard errors, using complex survey design factors (e.g., strata and PSU), can be obtained with the single SAS procedure PROC SURVEYMEANS.
*-------------------------------------------------------------------------;
* Use the PROC SURVEYMEANS procedure in SAS to compute a properly
weighted;
* estimated ratio of means for all persons ages 20+ and by
gender. ;
*-------------------------------------------------------------------------;
* Run analysis for overall subpopulation of interest;