trapezint                package:ROC                R Documentation

_t_r_a_p_e_z_o_i_d_a_l _r_u_l_e _f_o_r _A_U_C

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

     trapezoidal rule for AUC

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

     trapezint(x, y, a, b)

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

       x: x - abscissae

       y: y - ordinates

       a: a - lower limit of integration

       b: b - upper limit of integration

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

     uses approx

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

     estimated AUC

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

     x <- sort(runif(30))
     y <- sin(x)
     print(trapezint(x,y,0,1))

