interpolate.model_mean: Interpolate missing values from a fable model

View source: R/mean.R

interpolate.model_meanR Documentation

Interpolate missing values from a fable model

Description

Applies a model-specific estimation technique to predict the values of missing values in a tsibble, and replace them.

Usage

## S3 method for class 'model_mean'
interpolate(object, new_data, specials, ...)

Arguments

object

A model for which forecasts are required.

new_data

A tsibble containing the time points and exogenous regressors to produce forecasts for.

specials

(passed by fabletools::forecast.mdl_df()).

...

Other arguments passed to methods

Value

A tibble of the same dimension of new_data with missing values interpolated.

Examples

library(tsibbledata)

olympic_running %>%
  model(mean = MEAN(Time)) %>%
  interpolate(olympic_running)

fable documentation built on March 31, 2023, 8:13 p.m.