Compute sample sizes for $k$-fold cross-validation.
Usage
kfcv(k, N)
Arguments
k
number of groups.
N
total sample size.
Value
A vector of length k containing $k$ sample
sizes.
Details
If N/k is an integer, the sample sizes are k `N/k's (N/k,
N/k, ...), otherwise the remainder will be allocated to
each group as `uniformly' as possible, and at last these
sample sizes will be permuted randomly.