BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
CactusPete
Calcite | Level 5

I am running a proc surveymeans with the resulting table attached. I am using BPX (blood pressure) laboratory data and there's multiple recordings (BPXSY1, BPXSY2,...) so I am trying to average them. I was able to get an average but the values it used were not weighted and did not match the values in the table attached. Is there anyway of doing this?MEANSQ.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

It is a good idea to post links to related questions.

You would have to show the code that you used for "averaging"  and then generating BOTH tables that say "don't match".

And tell us which values "don't match". I would not expect the confidence intervals or errors to match. That is why we have the survey procs to handle complex weighting. If you use Proc means on the same data you will not get the same intervals and depending on the actual values and weights there can be notable differences.

 

If by "mean" you meant the per observation mean of the three variables and then asking for the overall mean with this procedure, you don't show the additional variables that I would expect for that, just your "raw" variables.

 

View solution in original post

1 REPLY 1
ballardw
Super User

It is a good idea to post links to related questions.

You would have to show the code that you used for "averaging"  and then generating BOTH tables that say "don't match".

And tell us which values "don't match". I would not expect the confidence intervals or errors to match. That is why we have the survey procs to handle complex weighting. If you use Proc means on the same data you will not get the same intervals and depending on the actual values and weights there can be notable differences.

 

If by "mean" you meant the per observation mean of the three variables and then asking for the overall mean with this procedure, you don't show the additional variables that I would expect for that, just your "raw" variables.

 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 891 views
  • 1 like
  • 2 in conversation