BookmarkSubscribeRSS Feed
Nebulus
Calcite | Level 5

I have a quick question about testing the assumption for paired t-tests that " The distribution of the differences in the dependent variable between the two related groups should be approximately normally distributed".

 

Say I have two groups one and two. The way I am supposed to do this is to create a new variable "diff=one-two"

then do..

 

Proc Univariate data=x normal;

qqplot  / Normal (mu=est sigma=est);

var diff;

run;

Is this correct?

 

Or do i use this instead to test normality?

var one two;

 

I interpreted it as I am supposed to test the normality of the differences between groups not each group.

Thanks!

 

 

2 REPLIES 2
ballardw
Super User

Actually I'd probably use Proc Ttest. With ODS Graphics on the defaults will create some plots related to the distributions of differences. If I didn't see any problems then we're done.

 

Use the VAR Diff version. If you use two variables you will get separate results for each variable in Univariate.

Ksharp
Super User
I think both are equality. If both one and two are normal distribution, then dif=one-two  must be normal distribution. 
because dif is linear combination of normal distribution.


sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1899 views
  • 2 likes
  • 3 in conversation