predict.higrad {higrad} | R Documentation |
Obtain Prediction and Confidence Intervals From a HiGrad Fit
Description
predict
can be applied with a higrad
object to obtain predictions and confidence intervals.
Usage
## S3 method for class 'higrad'
predict(object, newx, alpha = 0.05, type = "link",
prediction.interval = FALSE, ...)
Arguments
object |
a fitted object of class |
newx |
matrix of new values for |
alpha |
significance level. The confidence level of the interval is thus 1 - |
type |
type of prediction required. Type |
prediction.interval |
logical; indicator of whether prediction intervals should be returned instead of confidence intervals. |
... |
other prediction options. |
Value
A list with components
pred |
predicted values. |
upper |
upper limit of the confidence/prediction intervals. |
lower |
lower limit of the confidence/prediction intervals. |