Learn R Programming

scoringTools (version 0.1.3)

predict: Prediction on a raw test set of the best logistic regression model on discretized data.

Description

This function discretizes a user-provided test dataset given a discretization scheme provided by an S4 "discretization" object. It then applies the learnt logistic regression model and outputs its prediction (see predict.glm).

Usage

predict(object, ...)

# S3 method for discretization predict(object, newdata)

# S3 method for reject_infered predict(object, newdata, ...)

# S4 method for discretization predict(object, newdata)

# S4 method for reject_infered predict(object, newdata, ...)

Arguments

object

The S4 reject_infered object.

...

Additional parameters to pass on to base predict.

newdata

The test dataframe to discretize and for which we wish to have predictions.