BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I have summary stats (mean, std dev, N) on 2 independent samples from the same population. I want to combine them, so I can compare this population to another one (with proc ttest).

I know the formula for pooled variance, and can thus use a data step to calculate the pooled variance for my two samples, but I'm wondering if there is an existing procedure where SAS will do this for you? Seems like something that would need to be done frequently enough....

Thanks!
5 REPLIES 5
deleted_user
Not applicable
You say you have the summary stats, but do you also have the raw data? There are a number of procedures that you can get a pooled variance out of with the raw data, such as GLM.
deleted_user
Not applicable
No - unfortunately, I don't have the raw data - I only have the summary stats (from a published paper.)

Thanks!
deleted_user
Not applicable
Well, since you are planning on using TTEST on summarized data, I assume you know how to do that. So, I'd try passing the summary statistics for your two groups through TTEST first. You aren't interested in the statistical comparison, but it will give you the pooled standard deviation (under method='POOLED').
deleted_user
Not applicable
Ahhh - okay - I'll try that - I've already started calculating the pooled vars in excel, but this will be a good check.

Thank you!
Doc_Duke
Rhodochrosite | Level 12
Then you are stuck with doing it manually or generating simulated datasets with those means and standard deviations and sample size to use in the SAS procedures.

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 Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 5 replies
  • 4561 views
  • 0 likes
  • 2 in conversation