Task 1d: How to Estimate a Mean Ratio using SAS

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 SAS to Estimate Mean Contribution of milk to Calcium Intake for All Adults, Males, and Females, Ages 20 Years and Older

Sample Code

*-------------------------------------------------------------------------;
* 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;