kfoldcv: Subsamples for k-fold Cross-Validation

Description Usage Arguments Details Value Examples

View source: R/kfoldcv.R

Description

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

Usage

1
kfoldcv(k, N, nlevel=NULL)

Arguments

k

number of groups.

N

total sample size.

nlevel

a vector of sample sizes for stratified sampling.

Details

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

Value

A vector of length k.

Examples

1
2
3
# 10-fold CV with N = 91

kfoldcv(10, 91)	

ipred documentation built on Sept. 15, 2021, 5:06 p.m.