Programming the statistical procedures from SAS

Welch's two sample t-test

Accepted Solution Solved
Reply
New Contributor
Posts: 2
Accepted Solution

Welch's two sample t-test

I am very new to SAS and still tyring to understand the results tables that are produced.  I have been asked to run a Welch's two sample t-test on a data set.  I am able to run the process t-test using the 't Tests' under the Tasks and Utilities.  However for the Welch's test that refers to an unequal variance, I am unsure where in the code you tell it that your sample has unequal variances.  Or is that you refer to 'Pooled' or 'Satterwaite' rows when you need to refer to the numbers produced?  I can see that in in one of the result boxes that are produced it calculates variances on 'Pooled' and 'Satterwaite'.  Do I look to see which variance is unequal and those will be the Welch's results I should use?

 

Appreciate the insight.


Accepted Solutions
Solution
3 weeks ago
SAS Super FREQ
Posts: 3,306

Re: Welch's two sample t-test

The Satterthwaite test is for unequal variances. Some references cal it the Aspin-Welch-Satterthwaite t-test.

The Getting Started example in PROC TTEST contains an example. It is produced by default, so you do not need to specify any specify an option for it.

View solution in original post


All Replies
Grand Advisor
Posts: 10,043

Re: Welch's two sample t-test

I don't find a reference to a Welch's t-test but proc ttest supports the Cochran option which is a ttest with unequal variance.

 

That would just be one additional parameter on the Proc statement such as:

 

Proc ttest data=mydata cochran;

   class classvar;

   var analysisvar;

run;

Solution
3 weeks ago
SAS Super FREQ
Posts: 3,306

Re: Welch's two sample t-test

The Satterthwaite test is for unequal variances. Some references cal it the Aspin-Welch-Satterthwaite t-test.

The Getting Started example in PROC TTEST contains an example. It is produced by default, so you do not need to specify any specify an option for it.

New Contributor
Posts: 2

Re: Welch's two sample t-test

Rick thank you.  I just need to get a bit more familar with the readouts from the results.

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 105 views
  • 0 likes
  • 3 in conversation