hanley                  package:gcl                  R Documentation

_S_t_a_t_i_s_t_i_c_a_l_l_y _c_o_m_p_a_r_e _C-_i_n_d_i_c_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     Compares two binary classifier outputs on the same data using the
     method by Hanley and McNeil.

_U_s_a_g_e:

     hanley(paref1, paref2, aaref, ctype = "pearson")

_A_r_g_u_m_e_n_t_s:

  paref1: vector of predictions from classifier 1

  paref2: vector of predictions from classifier 2

   aaref: actual classes, must be 0 or 1

   ctype: type of correlation used in 'cor.test'

_D_e_t_a_i_l_s:

     Implements the method of Hanley and McNeil for comparing two
     c-indices (ROC AUC's) from the same data.

_V_a_l_u_e:

     Returns a list. 

       p: p value

    auc1: the AUC of classifier 1

    auc2: the AUC of classifier 2

     se1: standard error of AUC of classifier 1

     se2: standard error of AUC of classifier 2

       z: z value

       r: Correllation factor

  corr0s: correlation of true 0's

  corr1s: correlation of true 1's

_A_u_t_h_o_r(_s):

     Staal A. Vinterbo staal@dsg.harvard.edu

_R_e_f_e_r_e_n_c_e_s:

     J.A. Hanley and B.J. McNeil. A method of comparing the areas under
     receiver operating characteristic curves derived from the same
     cases. Radiology, 148:839-43, 1983.

_S_e_e _A_l_s_o:

     'cindex'

_E_x_a_m_p_l_e_s:

     p1 <- runif(10)
     p2 <- runif(10)
     a <- round(runif(10))
     hanley(p1,p2,a)

