Statistical Procedures

Programming the statistical procedures from SAS
BookmarkSubscribeRSS Feed
janechou
Calcite | Level 5

Hi,

 

I used proc univariate to do signed rank test on a variable delta_1, which is the difference between two groups. I rescaled delta_1 to delta_2 where delta_2=delta_1*a constant and then did signed rank test on delta_2. I was expecting to obtain the same results. However both the signed rank and p value changed. I don't understand what drives the difference.

 

Thanks!

2 REPLIES 2
Rick_SAS
SAS Super FREQ

The test statistics will be the same only when Mu0=0. For other values of the location parameter, there is no reason to expect that the signed-rank test is invariant to scaling.

If that doesn't solve the problem, post your PROC UNIVARIATE code.

ballardw
Super User

Yes show the code, both for how you scaled the variable and the univariate code for both tests.

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!

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
  • 1437 views
  • 2 likes
  • 3 in conversation