regr_folds: create folds (in regression)

View source: R/create_folds_and_data_split.R

regr_foldsR Documentation

create folds (in regression)

Description

this function creates both stratified and non-stratified folds in regression

Usage

regr_folds(folds, RESP, stratified = FALSE)

Arguments

folds

is an integer specifying the number of folds

RESP

is the response variable

stratified

is a boolean specifying if the folds should be stratfied

Value

a list of indices

Examples


## Not run: 

data(iris)

y = X[, 1]

folds = regr_folds(5, y, stratified = FALSE)


## End(Not run)

mlampros/FeatureSelection documentation built on Jan. 12, 2023, 4:40 a.m.