## averages of proportions using standard deviations as weights

Regular Contributor
Posts: 194

# averages of proportions using standard deviations as weights

I have averages of proportions and the standard deviation for each average.
Which SAS procedure calculates the average (of all the proportions) using the standard deviations as weights?
Thank you.
Valued Guide
Posts: 679

## Re: averages of proportions using standard deviations as weights

Virtually any procedure in SAS that can calculate a mean can also calculate a weighted mean. Why not start with the obvious one, PROC MEANS. Just add a weight statement. You probably should weight by the INVERSE of the variance, not the standard deviation. Get the weight variable in a data step first.
proc means data=a;
weight wt;
var y;
run;
Discussion stats