powered by
Plot 1D WH fit
# S3 method for WH_1d plot(x, what = "fit", trans, ...)
A plot representing the desired element of the fit
An object of class "WH_1d" returned by the WH() function
"WH_1d"
WH()
What should be plotted. Should be one of fit (the default), res for residuals and edf for the effective degrees of freedom.
fit
res
edf
An (optional) transformation to be applied to the data. By default the identity function
Not used
d <- portfolio_mort$d ec <- portfolio_mort$ec WH(d, ec) |> plot() WH(d, ec) |> plot("res") WH(d, ec) |> plot("edf")
Run the code above in your browser using DataLab