Learn R Programming

logistf (version 1.24)

predict.logistf: Predict Method for logistf Fits

Description

Obtains predictions from a fitted logistf object.

Usage

# S3 method for logistf
predict(object, newdata, type = c("link", "response"), flic = FALSE, ...)

Arguments

object

A fitted object of class logistf.

newdata

Optionally, a data frame in which to look for variables with which to predict. If omitted, the fitted linear predictors are used.

type

The type of prediction required. The default is on the scale of the linear predictors. The alternative response gives the predicted probabilities.

flic

If TRUE(default = FALSE), predictions are computed with intercept correction.

...

further arguments passed to or from other methods.

Value

A vector or matrix of predictions.

Details

If newdata is omitted the predictions are based on the data used for the fit.