benchB3                 package:klaR                 R Documentation

_B_e_n_c_h_m_a_r_k_i_n_g _o_n _B_3 _d_a_t_a

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

     Evaluates the performance of a classification method on the 'B3'
     data.

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

     benchB3(method, prior = rep(1/4, 4), sv = "4", scale = FALSE, ...)

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

  method: classification method to use

   prior: prior probabilities of classes

      sv: class of the start of a business cycle

   scale: logical, whether to use 'scale' first

     ...: furhter arguments passed to 'method'

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

     The performance of classification methods on cyclic data can be
     measured by a special form  of cross-validation:
     Leave-One-Cycle-Out. That means that a complete cycle is used as
     test data  and the others are used as training data. This is
     repeated for all complete cycles in the data.

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

     A list with elements 

   MODEL: list with the model returned by 'method' of the training data

   error: vector of test error rates in cycles

l1co.error: leave-one-cycle-out error rate

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

     Karsten Luebke

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

     'B3'

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

     perLDA <- benchB3("lda")
     ## Not run: 
     ## due to parameter optimization rda takes a while 
     perRDA <- benchB3("rda")
     library(rpart)
     ## rpart will not work with prior argument:
     perRpart <- benchB3("rpart", prior = NULL)
     ## End(Not run)

