BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hello,

I have the following data set:
Date P25 Median P75
2000 .... .... ....
2001
2002
...

I need to test the hypothesis that the median is not equal to 1.
I used the following code:

proc npar1way data = test wilcoxon;
class date;
var ... ;
run;

I receive a table looking like this:
date n Sum of Squares Expected under H0 Std under H0 Mean Score
2000 .....
2001 ....
2002 ....

At the end, it shows the Kruscal-Wallis test with one p-value.

But I need p-values for the test that the median is not equal to 1 for every year.

What do I have to change in the SAS code? Or do I have to use a different code to get the result?

Thanks,
Tina
2 REPLIES 2
Ksharp
Super User
I think Wilcoxon test is a alternative way to t test.
So need class variable has two levels .
however , Your class variable has three levels .
Doc_Duke
Rhodochrosite | Level 12
If your data are coming to you summarized as 25, 50, 75 percentiles, then you cannot do the test that you want.

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 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
  • 1268 views
  • 0 likes
  • 3 in conversation