BookmarkSubscribeRSS Feed
LAYMAN_YO
Calcite | Level 5

Could you elaborate on the difference of P-values (Chi-square) between AUC (ROC1-reference) with PROC LOGISTIC and Wilcoxon rank sum test with NPAR1WAY.

ROC curve area represents the estimate of p''=Pr(X1<X2)+Re(X1=X2) / 2 .

 

The WMW statistic can be used to test whether the AUC is significantly different from 0.5 (Bamber 1975). A convenient way to generate a 95% confidence interval for the ROC curve area [and hence Pr(X1< X2)] is to use the ROC option in PROC LOGISTIC.

 

Example

data abc;
input arm y;
cards;
2 11
1 12
2 13
1 14
2 15
1 16
1 17
1 18
1 19
1 20
;
run;
proc logistic data=abc;
class arm;
model arm(event='1')=y /outroc=troc;
roc;
roccontrast / estimate e;
run;

ROC Contrast Estimation and Testing Results by Row
Contrast Estimate StandardError 95% WaldConfidence Limits Chi-Square Pr > ChiSq
ROC1 - Model
-0.35710.1290-0.6099-0.10447.67050.0056

 

proc npar1way data=abc wilcoxon;
class arm;
var y;
exact wilcoxon ;
run;

Wilcoxon Two-Sample Test
Statistic (S) Z Pr < Z Pr > |Z| t Approximation ExactPr < Z Pr > |Z| Pr <= S Pr >= |S-Mean|Z includes a continuity correction of 0.5.
9.0000-1.59540.05530.11060.07250.14510.05830.1167

Kruskal-Wallis TestChi-Square DF Pr > ChiSq
2.922110.0874

 

 What is the relationship between  ROC1-Mo Chisq and K-W Chisq ?

 
3 REPLIES 3
Ksharp
Super User

Good question.

"AUC (ROC1-reference) with NPAR1WAY "

You mean K-S test ?

I think both test are non-parameter test,both are similar , but H0 is different .

K-S test H0: whether  these two class/level are coming from the same polulation  or not .

 

Wilcoxon rank sum test is more likt t-test (the non-parameter method of t-test).

its H0 : whether these two class/level's mean(expect value) are the same .

 

Better post it at Stat forum and calling @StatDave 

PaigeMiller
Diamond | Level 26

@LAYMAN_YO wrote:

Could you elaborate on the difference of P-values (Chi-square) between AUC (ROC1-reference) with NPAR1WAY and Wilcoxon rank sum test with Logistic.


Could you be more specific and state exactly which commands or options in PROC NPAR1WAY you are referring to?

--
Paige Miller
StatDave
SAS Super FREQ

As stated in the latter part of this note, the KS test assessed whether the event and nonevent populations differ, not just in location, but also in shape. Since interest usually is focused on a location shift (differing means), that test is a bit too broad. 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 1066 views
  • 0 likes
  • 4 in conversation