ModCV: Cross validation of a regression Model using indexes created...

Description Usage Arguments Details

Description

ModCV(index, indexlist, Formula, DFrame, Func, Resp, ...)

Usage

1
ModCV(index, indexlist, Formula, DFrame, Func, Resp, ...)

Arguments

index

numerical index representing length of indexlist list

indexlist

list created using Kcross, of length K with $train and $test indices

Formula

formula for the model

DFrame

the name of the original data frame

Func

a function, e.g., lm or randomForest (regression model)

Resp

either the column number or the 'name' of the response variable

...

additional arguments to pass to the model, e.g., hidden=3 for ANN

Details

Allows k-fold cross validation of a regression model (with continuous response) and stores output in a list. See vignette.


helophilus/ColsTools documentation built on May 30, 2019, 4:03 p.m.