unitquantreg
classExtract various types of predictions from unit quantile regression models.
# S3 method for unitquantreg
predict(
object,
newdata,
type = c("link", "quantile", "shape", "terms"),
interval = c("none", "confidence"),
level = 0.95,
se.fit = FALSE,
...
)
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:
Predictions, as for se.fit = FALSE
.
Estimated standard errors.
For type = "terms"
the output is a data.frame
with a columns
per term.
fitted model object of class unitquantreg
.
optionally, a data frame in which to look for variables with which to predict. If omitted, the original observations are used.
character indicating type of predictions. The options are
link
, quantile
, shape
and terms
.
type of interval desired. The options are none
and
confidence
. The "terms
" option returns a matrix giving
the fitted values of each term in the model formula on the linear predictor
scale.
coverage probability for the confidence intervals. Default is
0.95
.
logical. If TRUE
return the asymptotic standard errors.
currently not used.
André F. B. Menezes