interpolate.mdl_vtl_df | R Documentation |
Uses a fitted vital model to interpolate missing values from a dataset.
## S3 method for class 'mdl_vtl_df'
interpolate(object, new_data, ...)
object |
A mable containing a single model column. |
new_data |
A dataset with the same structure as the data used to fit the model. |
... |
Other arguments passed to interpolate methods. |
A vital object with missing values interpolated.
Rob J Hyndman
act_female <- aus_mortality |>
dplyr::filter(Code == "ACTOT", Sex == "female")
act_female |>
model(mean = FMEAN(Mortality)) |>
interpolate(act_female)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.