Obtains predictions from a fitted logistf
object.
# S3 method for logistf
predict(
object,
newdata,
type = c("link", "response", "terms"),
flic = FALSE,
se.fit = FALSE,
reference,
na.action = na.pass,
...
)
A vector or matrix of predictions.
A fitted object of class logistf
.
Optionally, a data frame in which to look for variables with which to predict. If omitted, the fitted linear predictors are used.
The type of prediction required. The default is on the scale of the linear predictors.
The alternative response
gives the predicted probabilities. Type terms
returns a matrix with the fitted
values of each term in the formula on the linear predictor scale.
If TRUE
(default = FALSE
), predictions are computed with intercept correction.
If TRUE
(default = FALSE
) standard errors are computed.
A named vector of reference values for each variable for type="terms"
.
Function determining what should be done with missing values in newdata. The default is to predict NA.
further arguments passed to or from other methods.
If newdata
is omitted the predictions are based on the data used for the fit.