This function computes predictions based on fitted mid-quantile regression models.
# S3 method for midrq
predict(object, newdata, offset, na.action = na.pass,
type = "response", ...)
a vector or a matrix or an array of predictions.
an object of class
midrq
.
an optional data frame in which to look for variables with which to predict. If omitted, the fitted values are used.
an optional offset to be included in the model frame (when newdata
is provided).
function determining what should be done with missing values in newdata
. The default is to predict NA
.
the type of prediction required. The default "response"
is on the scale of the response variable, i.e. the values are back-transformed using the inverse of the transformation \(h^{-1}(Xb)\); the alternative "link"
is on the scale of the linear predictors \(h(y) = Xb\).
not used.
Marco Geraci
residuals.midrq
, midrq
, coef.midrq