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_2d vcov(object, pred = TRUE, ...)
The variance-covariance matrix for the fitted values
An object of class "WH_2d" returned by the WH() function
"WH_2d"
WH()
Should the variance-covariance matrix include the extrapolated values as well (if any) ?
Not used
object <- WH(portfolio_LTC$d, portfolio_LTC$ec) V <- vcov(object) object_extra <- predict(object, newdata = list(age = 60:109, duration = 0:19)) V <- vcov(object_extra)
Run the code above in your browser using DataLab