plot.WH_2d | R Documentation |
Plot Method for a Whittaker-Henderson Fit
## S3 method for class 'WH_2d'
plot(x, what = "y_hat", trans, ...)
x |
An object of class |
what |
Should be one of |
trans |
An (optional) transformation to be applied to the data. By default the identity function |
... |
Not used |
A plot representing the desired element from the fit...
keep_age <- which(rowSums(portfolio_LTC$ec) > 5e2)
keep_duration <- which(colSums(portfolio_LTC$ec) > 1e3)
d <- portfolio_LTC$d[keep_age, keep_duration]
ec <- portfolio_LTC$ec[keep_age, keep_duration]
fit <- WH_2d(d, ec)
plot(fit)
plot(fit, "std_y_hat")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.