interpolate.mdl_vtl_df {vital} | R Documentation |
Interpolate missing values using a vital model
Description
Uses a fitted vital model to interpolate missing values from a dataset.
Usage
## S3 method for class 'mdl_vtl_df'
interpolate(object, new_data, ...)
Arguments
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. |
Value
A vital object with missing values interpolated.
Author(s)
Rob J Hyndman
Examples
act_female <- aus_mortality |>
dplyr::filter(Code == "ACTOT", Sex == "female")
act_female |>
model(mean = FMEAN(Mortality)) |>
interpolate(act_female)
[Package vital version 1.1.0 Index]