predict.scar {scar} | R Documentation |
Predict method for scar
fits
Description
This function obtains predictions from a fitted scar
object.
Usage
## S3 method for class 'scar'
predict(object, newdata, type = c("link", "response"), rule=1, ...)
Arguments
object |
A fitted |
newdata |
An optional numeric |
type |
Type of predictions, with choices "link" (the default), or "response". The default produces predictions on the scale of the additive predictors. If "response" is selected, the predictions are on the scale of the response (i.e. mean of the exponential family), and are monotone transformations of the additive predictors using the inverse link function. |
rule |
An integer describing how to handle the new data outside the range of the
observed covariates. If |
... |
Further arguments passed to or from other methods. |
Value
A numeric vector of predictions.
Author(s)
Yining Chen and Richard Samworth
See Also
Examples
## See examples for the function scar