exclude_fun: set up exclude index for modelling fitting

View source: R/utils.R

exclude_funR Documentation

set up exclude index for modelling fitting

Description

This generates a vector of length nrow(data) to flag removal from model **training**

Usage

exclude_fun(data, exclude_train = NULL)

Arguments

data

A data.frame containing target and explanatory variables. May optionally contain a column of exclude flags named by exclude_train.

exclude_train

control for exclusion of rows in data for the model training only, with various options, either:

  • the column name of the binary/boolean exclude flag supplied in data.

  • a vector of binary/boolean exclusion flags of length nrow(data)

  • NULL indicates no exclusion

Details

....

Value

A vector of binary flags for removing training data points

Author(s)

Ciaran Gilbert, ciaran.gilbert@strath.ac.uk


jbrowell/ProbCast documentation built on July 20, 2024, 1:53 p.m.