powered by
Extrapolate the Whittaker-Henderson fit for new observations.
# S3 method for WH_1d predict(object, newdata = NULL, ...)
An object of class "WH_1d" with additional components y_pred and std_y_pred corresponding to the model predictions and associated standard deviations.
"WH_1d"
y_pred
std_y_pred
An object of class "WH_1d" returned by the WH_1d() function
WH_1d()
A vector containing the position of new observations. Observations from the fit will automatically be added to this, in the adequate order
Not used
d <- portfolio_mort$d ec <- portfolio_mort$ec fit <- WH_1d(d, ec) newdata = 18:99 pred <- predict(fit, newdata) plot(pred)
Run the code above in your browser using DataLab