predict.stoch_logistic: Prediction function for stochastic logistic regression

Description Usage Arguments Value See Also

View source: R/logistic.R

Description

Makes predictions for new data from the fitted model. Model have already been fit to at least 1 batch of data.

Usage

1
2
## S3 method for class 'stoch_logistic'
predict(object, newdata, type = "prob", ...)

Arguments

object

A 'stoch_logistic' object as output by function 'stochastic.logistic.regression'.

newdata

New data on which to make predictions.

type

Type of prediction to make. Can pass 'prob' to get probabilities for the positive class, or 'class' to get the predicted class.

...

Not used.

Value

A vector with the predicted classes or probabilities for 'newdata'.

See Also

stochastic.logistic.regression


stochQN documentation built on Sept. 26, 2021, 9:07 a.m.