rocplot                package:Zelig                R Documentation

_R_e_c_e_i_v_e_r _O_p_e_r_a_t_o_r _C_h_a_r_a_c_t_e_r_i_s_t_i_c _P_l_o_t_s

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

     The 'rocplot' command generates a receiver operator characteristic
     plot to compare the in-sample (default) or out-of-sample fit for
     two logit or probit regressions.

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

     rocplot(y1, y2, fitted1, fitted2, cutoff = seq(from=0, to=1, length=100), 
             lty1 = "solid", lty2 = "dashed", lwd1 = par("lwd"), lwd2 = par("lwd"),
             col1 = par("col"), col2 = par("col"), main, xlab, ylab, ...)

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

      y1: Response variable for the first model.  

      y2: Response variable for the second model. 

 fitted1: Fitted values for the first model.  These values may
          represent either the in-sample or out-of-sample fitted
          values. 

 fitted2: Fitted values for the second model. 

  cutoff: A vector of cut-off values between 0 and 1, at which to
          evaluate the proportion of 0s and 1s correctly predicted by
          the first and second model.  By default, this is 100
          increments between 0 and 1, inclusive.  

lty1, lty2: The line type for the first model ({\tt lty1}) and the
          second model ('lty2'), defaulting to solid and dashed,
          respectively.    

lwd1, lwd2: The width of the line for the first model ('lwd1') and the
          second model ('lwd2'), defaulting to 1 for both.  

col1, col2: The colors of the line for the first model ('col1') and the
          second model ('col2'), defaulting to black for both. 

    main: a title for the plot.  Defaults to "Roc Curve".

    xlab: a label for the x-axis.  Defaults to "Proportion of 1's 
          Correctly Predicted".

    ylab: a label for the y-axis.  Defaults to Proportion of 0's 
          Correctly Predicted".

     ...: Additional parameters passed to plot, including 'xlab',
          'ylab', and 'main'.  

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

     For two logit or probit models, 'rocplot' returns an on-screen
     window with the desired ROC plot.

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

     Kosuke Imai <kimai@princeton.edu>; Gary King <king@harvard.edu>;
     Olivia Lau <olau@fas.harvard.edu>

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

     The full Zelig manual (available at <URL:
     http://gking.harvard.edu/zelig>), 'plot', 'lines'.

