dot-folds: Cross-validation folds

Description Usage Arguments Value Examples

Description

Assigns samples to cross-validation folds, balancing the folds in the case of a binary or survival response.

Usage

1
.folds(y, nfolds, foldid = NULL)

Arguments

y

response: vector of length n

nfolds

number of folds: positive integer (>= 10 recommended)

foldid

fold identifiers: vector of length n, with entries from 1 to nfolds

Value

Returns the fold identifiers.

Examples

1

palasso documentation built on April 19, 2021, 5:07 p.m.