kfoldcv                package:ipred                R Documentation

_S_u_b_s_a_m_p_l_e_s _f_o_r _k-_f_o_l_d _C_r_o_s_s-_V_a_l_i_d_a_t_i_o_n

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

     Computes feasible sample sizes for the k groups in k-fold cv if
     N/k is not an integer.

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

     kfoldcv(k, N, nlevel=NULL)

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

       k: number of groups. 

       N: total sample size. 

  nlevel: a vector of sample sizes for stratified sampling.

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

     If N/k is not an integer, k-fold cv is not unique. Determine
     meaningful sample sizes.

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

     A vector of length 'k'.

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

     Torsten Hothorn <Torsten.Hothorn@rzmail.uni-erlangen.de>

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

     # 10-fold CV with N = 91

     kfoldcv(10, 91) 

