koplsSensSpec             package:kopls             R Documentation

_S_e_n_s_i_t_i_v_i_t_y _a_n_d _s_p_e_c_i_f_i_c_i_t_y _c_a_l_c_u_l_a_t_i_o_n_s _f_o_r _c_l_a_s_s_i_f_i_c_a_t_i_o_n

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

     Calculates sensitivity and specificity values for classification
     in a class-wise fashion.

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

     koplsSensSpec(trueClass, predClass)

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

trueClass: Matrix of true class identifiers (integer).

predClass: Matrix of predicted class identifiers (integer).

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

     A list with the following properties: 

   TPtot: Total true positive (TP) rate.

   FPtot: Total false positive (FP) rate.

   TNtot: Total true negative (TN) rate.

   FNtot: Total false negative (FN) rate.

 sensTot: Overall sensitivity.

 specTot: Overall specificity.

      TP: TP rate for each class.

      FP: FP rate for each class.

      TN: TN rate for each class.

      FN: FN rate for each class.

    sens: Sensitivity for each class.

    spec: Specificity for each class.

    Ntot: Total number of entries.

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

     Max Bylesjo and Mattias Rantalainen

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

     Rantalainen M, Bylesjo M, Cloarec O, Nicholson JK, Holmes E and
     Trygg J. *Kernel-based orthogonal projections to latent structures
     (K-OPLS)*, _J Chemometrics_ 2007; 21:376-385.
     doi:10.1002/cem.1071.

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

