View source: R/tsp.trend.filter.R
tsp.trend.filter | R Documentation |
Use the mfilter package to filter a time series and plot the trend using ggplot2
tsp.trend.filter(x, type = c("HP", "BK", "CF", "BW", "TR"), table = TRUE)
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 |
Victor Espinoza
decompose
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.