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 _N_o_t_e: _A_u_t_h_o_r(_s): _R_e_f_e_r_e_n_c_e_s: _S_e_e _A_l_s_o: _E_x_a_m_p_l_e_s: x <- sort(runif(30)) y <- sin(x) print(trapezint(x,y,0,1))