tsp.trend.filter: Trend filter Plot

View source: R/tsp.trend.filter.R

tsp.trend.filterR Documentation

Trend filter Plot

Description

Use the mfilter package to filter a time series and plot the trend using ggplot2

Usage

tsp.trend.filter(x, type = c("HP", "BK", "CF", "BW", "TR"), table = TRUE)

Arguments

x

time series object of class "ts"

type

filter type, the filter types are: "HP" (Hodrick-Prescott) by default, "BK" (Baxter-King), "CF" (Christiano-Fitzgerald), "BW" (Butterworth) and "TR" (trigonometric regression).

table

print table with basic statistic

Author(s)

Victor Espinoza

See Also

decompose


espher1987/tseries.plot documentation built on Nov. 2, 2022, 5:48 p.m.