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?
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.
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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Get started using SAS Studio to write, run and debug your SAS programs.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.