segmkf: Segments for cross-validation

Description Usage Arguments

Description

Segments for cross-validation

Usage

1
2
3
4
5
6
7
8
segmkf(
  n,
  y = NULL,
  K = 5,
  type = c("random", "consecutive", "interleaved"),
  nrep = 1,
  seed = NULL
)

Arguments

n

: number of samples

y

: A vector of length n defining the blocks.

K

: number of fold

rep

: The number of replications of the repeated CV. Default to nrep = 1.

For

segmkf. The type K-fold CV. Possible values are "random" (default), "consecutive" and "interleaved".


maxmetz/RoBoost-PLSR documentation built on Dec. 21, 2021, 3:52 p.m.