ms_dcf_filter: Kim filter (Hamilton + Kalman filter) an estimated model from...

Description Usage Arguments Value Author(s) Examples

View source: R/package_functions.R

Description

Kim filter (Hamilton + Kalman filter) an estimated model from ms_dcf_estim

Usage

1
ms_dcf_filter(y, model, plot = F)

Arguments

y

Multivariate time series of data values. May also contain a date column.

model

Structural time series model estimated using ms_dcf_estim.

plot

Logial, whether to plot the output or not.

Value

List of data tables containing the filtered and smoothed series.

Author(s)

Alex Hubbard (hubbard.alex@gmail.com)

Examples

1
ms_dcf_filter(y = DT[, c("date", "y")], model = model)

opendoor-labs/MarkovSwitchingDCF documentation built on Jan. 8, 2020, 12:24 p.m.