pred_train_test: Training and Testing Predictions

Description Usage Arguments Details

View source: R/predict-train-test.R

Description

Make predictions using in train and test data using a model. The model object must have a S3 predict method. In other words, there should be a predict.class for whatever class the model is. To check the class of a model run class model_obj. Also, check methods('predict') to check if your model class is supported as a S3 predict method.

Usage

1
pred_train_test(model, train, test, type = "response")

Arguments

model

Model object

train

Training data

test

Testing data

type

Type of prediction; passed to predict

Details

Both training and testing must contian all the predictors used in the model. Predictor names must be a full match.


mattwarkentin/precogs documentation built on Jan. 12, 2020, 6:24 p.m.