Obtains predicted probabilities, predicted class, or linear predictors.
# S3 method for gldrm
predict(
object,
newdata = NULL,
type = c("link", "response", "terms", "fTilt"),
se.fit = FALSE,
offset = NULL,
...
)The object returned depends on type.
S3 object of class "gldrm", returned from the gldrm function.
Optional data frame. If NULL, fitted values will be obtained for the training data.
The type of prediction required. Type "link" returns the linear
predictor. Type "response" returns the fitted mean. Type "terms" returns
a matrix giving the fitted values of each term in the model formula on the
linear predictor scale. Type "fTilt" returns a matrix containing the
fitted nonparametric distribution for each observation. Each row of the matrix
corresponds to an observation in newdata, and each column corresponds
to a unique response value in the training data.
Logical. If TRUE, standard errors are also returned. Does not apply
for type = "fTilt".
Optional offset vector. Only used if newdata is not NULL.
Not used. Additional predict arguments.