I run the same problem again on matlab 7.8 ( R2009a) and it was perfect. I was using matlab 7.4 before. I fixed the error mentioned by Segun Oshin and run some examples with matlab 7.4 and it was ok. However, when I ran the example above there was an error in 7.4 but not in Mtalab 7.8. Thanks
Jorge
@Jorge Amaral
Thank you for your comment.
I used your data and this is the result:
ROC CURVE DATA
--------------------------------------------------------------------------------
Cut-off point Sensivity Specificity
0.9000 0.0000 1.0000
0.8000 0.1000 1.0000
0.7000 0.2000 1.0000
0.6000 0.2000 0.9000
0.5500 0.3000 0.9000
0.5400 0.4000 0.9000
0.5300 0.5000 0.9000
0.5200 0.5000 0.8000
0.5100 0.5000 0.7000
0.5050 0.6000 0.7000
0.4000 0.6000 0.6000
0.3900 0.7000 0.6000
0.3800 0.7000 0.5000
0.3700 0.8000 0.5000
0.3600 0.8000 0.4000
0.3500 0.8000 0.3000
0.3400 0.8000 0.2000
0.3300 0.9000 0.2000
0.3000 0.9000 0.1000
0.1000 1.0000 0.1000
--------------------------------------------------------------------------------
ROC CURVE ANALYSIS
--------------------------------------------------------------------------------
AUC S.E. 95% C.I. Comment
--------------------------------------------------------------------------------
0.68000 0.12186 0.44115 0.91885 Poor test
--------------------------------------------------------------------------------
Standardized AUC 1-tail p-value
1.4771 0.069828 The area is not statistically greater than 0.5
so there is not error. If you want contact me by email and we'll try to better understand and to solve
gud stuff sir.i am doin my final year project.i tried ur codes.its workin gud 4 default values.but i dono 2 feed d input.. wat do u mean by data value?i hav used svm classifier. the output of svm is no of ones and no of zeros.how shld i feed tis as input..i need tis immediately..can u plz help...
Great work!
I have a question regarding the code. In line 222
(if p<=alpha) , I have partest in the same directory but when I run the code with the matrix:
fawcett_matrix =
0.7000 0
0.5300 0
0.5200 0
0.5050 0
0.3900 0
0.3700 0
0.3600 0
0.3500 0
0.3300 0
0.1000 0
0.9000 1.0000
0.8000 1.0000
0.6000 1.0000
0.5500 1.0000
0.5400 1.0000
0.5100 1.0000
0.4000 1.0000
0.3800 1.0000
0.3400 1.0000
0.3000 1.0000
ROCout=roc(fawcett_matrix,0,0.05,1) the following error occurs:
??? Undefined function or variable "co".
Error in ==> roc at 271
ROCout.co=co;
I think it happens because p is greater than alpha in line 222 and there is no default value. Is that correct?
Thanks,
Jorge
this is a problem caused by using a new syntax of matlab that is not supported by your version. Simply do this:
1) edit roc
2) change [~,J]=min(d); into [S,J]=min(d);
3) save and exit
Comment only