Learn R Programming

fable (version 0.4.0)

interpolate.ARIMA: 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 ARIMA
interpolate(object, new_data, specials, ...)

Value

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

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

Examples

Run this code
library(tsibbledata)

olympic_running %>%
  model(arima = ARIMA(Time ~ trend())) %>%
  interpolate(olympic_running)

Run the code above in your browser using DataLab