Last chance! 50% off unlimited learning
Sale ends in
Compute sample sizes for
kfcv(k, N)
number of groups.
total sample size.
A vector of length k
containing
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.
# NOT RUN {
## divisible
kfcv(5, 25)
## not divisible
kfcv(10, 77)
# }
Run the code above in your browser using DataLab