⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 computerocpval.m

📁 Continuous Profile Models (CPM) Matlab Toolbox.
💻 M
字号:
% function p = computeROCPval(y,x,yc,xc)%% Use two-sided Wilcox paried rank sign test to see if% two ROC curves are statistically different.%% y,x are data from one ROC, and yc,xc from the other%% method: merge together all possible x values (to form a general% domain), then interpolate where necessary so that each ROC curve% has a corresponding y-value; then apply the statistical test%% however, the smarter thing to do might be to take the intersection of% the two domains so that we are not artificially obtaining more evidence%% to do the latter, make sure USE_INTERSECT=1function p = computeROCPval(y,x,yc,xc)USE_INTERSECT=1;y=y(:);x=x(:);yc=yc(:);xc=xc(:);unx = unique(x);unxc = unique(xc);if ~USE_INTERSECT    disp('Using union of domains');    domx = union(unx,unxc);else    disp('Using intersection of domains');    domx = intersect(unx,unxc);end%% now for each of these allX we need to have a corresponding%% y value, using the 'lowest y-values consistent with the%% discrete points available'numX = length(domx);%% now fillin where there are missing domain valuescheckPlot=0;Tinterpy=rocInterp(x,y,domx,checkPlot);Tinterpyc=rocInterp(xc,yc,domx,checkPlot);%[Tinterpy Tinterpyc]%% remove any duplicate pairs[interpy, interpyc] = getUniquePairs(Tinterpy,Tinterpyc);%% now calculate the two-sided Wilcox paired rank sign testp=signrank(interpyc,interpy,'method','exact');%p=signrank(interpy,interpyc,'method','approximat');    

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -