Programming the statistical procedures from SAS

help with intepretation of npar1way procedure (Wilcoxon's score)

Accepted Solution Solved
Reply
New Contributor
Posts: 2
Accepted Solution

help with intepretation of npar1way procedure (Wilcoxon's score)

Hi all, 

 

I have a sample of 1000 individuals divided in three groups : individuals where TYP_ALD=0, individuals where TYP_ALD=1, and individuals where TYP_ALD=2. For each of them I have an other variable called PRS_REM_MNT_INDIV which give me the amount that their insurance paid for them to cover their healthcare. My goal is to prove that this amount depends on what group you belong to (in other words, it will cost the insurance a lot more if your type of ALD is 0 for instance). I am far from having the normality satisfied so I've decided to use non-parametric test and so the Wilcoxon analysis. Here's what I've got in output using the npar1way procedure :

 

 

Sans titre.jpg

 

The Kruskal-Wallis test makes things pretty clear, however I'd also like to use the Wilcoxon's score table. Problem is I don't understand how the column 'Expected Under H0' is obtained. Can someone give me a hint on that and tell me how I can use this to prove my point? 

 

Thank you all


Accepted Solutions
Solution
‎07-11-2017 10:06 AM
SAS Super FREQ
Posts: 3,474

Re: help with intepretation of npar1way procedure (Wilcoxon's score)

The K-W test uses ranks. You have 1000 observations, so the expected (median) rank is 500.5.  

The null hypothesis is that the median is independent of the categories.

 

Under the null hypothesis, the expected rank for Type=0, which has 763 observations, is 763*500.5 = 381881.5 .

Under the null hypothesis, the expected rank for Type=2, which has  89observations, is 89*500.5 = 44544.5.

etc

 

For your data, it looks like the cost for Type=0 is about the same as expected under H0. However, payments for Type=2 is less than expected and payments for Type=1 is more than expected.

View solution in original post


All Replies
Solution
‎07-11-2017 10:06 AM
SAS Super FREQ
Posts: 3,474

Re: help with intepretation of npar1way procedure (Wilcoxon's score)

The K-W test uses ranks. You have 1000 observations, so the expected (median) rank is 500.5.  

The null hypothesis is that the median is independent of the categories.

 

Under the null hypothesis, the expected rank for Type=0, which has 763 observations, is 763*500.5 = 381881.5 .

Under the null hypothesis, the expected rank for Type=2, which has  89observations, is 89*500.5 = 44544.5.

etc

 

For your data, it looks like the cost for Type=0 is about the same as expected under H0. However, payments for Type=2 is less than expected and payments for Type=1 is more than expected.

New Contributor
Posts: 2

Re: help with intepretation of npar1way procedure (Wilcoxon's score)

many thanks
☑ This topic is SOLVED.

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

Discussion stats
  • 2 replies
  • 79 views
  • 1 like
  • 2 in conversation