interpolate: Interpolate missing values using a vital model

interpolate.mdl_vtl_dfR 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

nor_female <- norway_mortality |>
  dplyr::filter(Sex == "Female")
nor_female |>
  model(mean = FMEAN(Mortality)) |>
  interpolate(nor_female)

vital documentation built on Aug. 21, 2025, 5:34 p.m.