Obtaining stratum-level estimates in PROC SURVEYMEANS


Beginning in SAS 9.2 TS2M0, if you have a stratified survey design and wish to compute summary statistics within each stratum, you can specify the strata variable(s) in a DOMAIN statement in PROC SURVEYMEANS. For example:

proc surveymeans data=dsn;
   var y;
   strata str;
   domain str;
   weight w;
   run;

For information on prior releases, see this note.