predict.scair {scar} | R Documentation |
Predict method for scair
fits
Description
This function obtains predictions from a fitted scair
object.
Usage
## S3 method for class 'scair'
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 index 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 index predictors using the inverse link function. |
rule |
An integer describing how to handle the new data outside the range of the
observed indices (computed via linear combination of 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
scair
, plot.scair
, predict.scar
Examples
## See examples for the function scair