This section describes how to use SAS to estimate a mean ratio 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.
*-------------------------------------------------------------------------;
* Use the PROC SURVEYMEANS procedure in SAS to compute a properly
weighted;
* estimated mean ratio for all persons ages 20+ and by
gender. ;
*-------------------------------------------------------------------------;
* Run analysis for overall subpopulation of interest;