powered by
The variance-covariance matrix may be useful in case confidence intervals are required for quantities derived from the fitted values.
# S3 method for WH_1d vcov(object, pred = TRUE, ...)
The variance-covariance matrix for the fitted values
An object of class "WH_1d" returned by the WH() function
"WH_1d"
WH()
Should the variance-covariance matrix include the extrapolated values as well (if any) ?
Not used
object <- WH(portfolio_mort$d, portfolio_mort$ec) vcov(object) object_extra <- predict(object, newdata = 40:99) V <- vcov(object_extra)
Run the code above in your browser using DataLab