BookmarkSubscribeRSS Feed
gzr2mz39
Quartz | Level 8
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.
1 REPLY 1
lvm
Rhodochrosite | Level 12 lvm
Rhodochrosite | Level 12
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;

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1314 views
  • 0 likes
  • 2 in conversation