New SAS User

Completely new to SAS or trying something new with SAS? Post here for help getting started.
BookmarkSubscribeRSS Feed
nadiaf
Calcite | Level 5

Hello!

I've trying to estimate the SD of the difference between two means. I have the means, SD and n for each dataset. Below an example of how I have my dataset. I'd appreciate any help with this. Thanks!

agessexnmean ASD Amean BSD BMean diff
19-30males8827.458252.6194446.21152.150556-1.24675
19-30females8975.588752.1562964.6661.774074-0.92275
31-50males20777.5912.5462966.323252.089815-1.26775
31-50females22885.832752.1737044.869751.78963-0.963
2 REPLIES 2
PaigeMiller
Diamond | Level 26

Your table seems to be just the summary statistics. If you have the raw data, then PROC TTEST does this easily, see figure 125.4 here: https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_ttest_gettingstarted02.htm

 

If you don't have the raw data, the formula for pooled standard deviation is given in many textbooks, web sites and even at Wikipedia, and I urge you to do a search to find the proper formula.

--
Paige Miller

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 831 views
  • 0 likes
  • 3 in conversation