View source: R/predict.scair.R
predict.scair | R Documentation |
scair
fits
This function obtains predictions from a fitted scair
object.
## S3 method for class 'scair' predict(object, newdata, type = c("link", "response"), rule=1, ...)
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. |
A numeric vector of predictions.
Yining Chen and Richard Samworth
scair
, plot.scair
, predict.scar
## See examples for the function scair
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.