GetPredType: A helper function used by the predict function. Since the...

Description Usage Arguments Value Examples

View source: R/ModelGeneration.R

Description

A helper function used by the predict function. Since the many types of models are not uniform in how they are called, this function determines what values to pass into "type" and then returns the predictions.

Usage

1
GetPredType(model, newdata)

Arguments

model

The model to be used for prediction

newdata

A dataframe for the model to predict on

Value

The predictions for the model on the given data, returned in dataframe format

Examples

1
2
# This function is used by predict.ModelComparison. It's usage is as follows:
# pred.basic[[i]] = GetPredType(model, newdata)

orionw/BestModel documentation built on Aug. 17, 2019, 7:29 p.m.