stackPred: Predict a new set of data using a caretStack model.

Description Usage Arguments

View source: R/stackPred.R

Description

Supports classification and regression. Note: only continuous variables are expected to be used as predictors. It is assumed that there are a sufficient number of subjects in each category.

Usage

1
2
3
4
5
6
7
8
9
stackPred(
  data,
  resp.var,
  nRep,
  nFolds.outer,
  dir.path,
  file.root,
  stack.method = "wt.avg"
)

Arguments

data

The data frame containing the training set.

resp.var

Variable to predict.

nRep

Number of times nCV is repeated.

nFolds.outer

Number of outer folds

dir.path

Directory where the CV data is stored. Example: "Output/rNCV/"

file.root

Prefix for the CV filenames.


kforthman/caretStack documentation built on June 21, 2021, 8:38 a.m.