View source: R/predict-gldrm.R
predict.gldrm | R Documentation |
Obtains predicted probabilities, predicted class, or linear predictors.
## S3 method for class 'gldrm'
predict(
object,
newdata = NULL,
type = c("link", "response", "terms", "fTilt"),
se.fit = FALSE,
offset = NULL,
...
)
object |
S3 object of class "gldrm", returned from the |
newdata |
Optional data frame. If NULL, fitted values will be obtained for the training data. |
type |
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 |
se.fit |
Logical. If TRUE, standard errors are also returned. Does not apply
for |
offset |
Optional offset vector. Only used if |
... |
Not used. Additional predict arguments. |
The object returned depends on type
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.