This functions returns the variance-covariance matrix of the coefficients of a fitted qrr
model object.
# S3 method for qrr
vcov(object, method = "approximate", R = 200, update = TRUE, ...)
an object of class
qrr
.
if "approximate"
, the variance-covariance estimate is approximated by the inverse of the numerical Hessian. The latter is calculated as detailed in Farcomeni and Geraci (2023). If "boot"
, the variance-covariance estimate is calculated by means of ordinary bootstrap (see boot
).
the number of bootstrap replications.
logical flag. If TRUE
(the default), the statistic to be resampled is obtained via an update
of the qrr
object. If FALSE
, then the statistic to be resampled is obtained via a do.call
of the qrr
object. See details.
not used.
Marco Geraci with contributions from Alessio Farcomeni
The use of update = FALSE
is preferred when the function vcov.qrr
is called from within another function.
Farcomeni A. and Geraci M. Quantile ratio regression. 2023. Working Paper.
qrr