predict.unitquantreg {unitquantreg} | R Documentation |
Prediction method for unitquantreg
class
Description
Extract various types of predictions from unit quantile regression models.
Usage
## S3 method for class 'unitquantreg'
predict(
object,
newdata,
type = c("link", "quantile", "shape", "terms"),
interval = c("none", "confidence"),
level = 0.95,
se.fit = FALSE,
...
)
Arguments
object |
fitted model object of class |
newdata |
optionally, a data frame in which to look for variables with which to predict. If omitted, the original observations are used. |
type |
character indicating type of predictions. The options are
|
interval |
type of interval desired. The options are |
level |
coverage probability for the confidence intervals. Default is
|
se.fit |
logical. If |
... |
currently not used. |
Value
If se.fit = FALSE
then returns a data.frame
with
predict values and confidence interval if interval = TRUE
.
If se.fit = TRUE
returns a list with components:
fit |
Predictions, as for |
se.fit |
Estimated standard errors. |
For type = "terms"
the output is a data.frame
with a columns
per term.
Author(s)
André F. B. Menezes