powered by
Convenience function that applies all three filtering methods (wavelet, EMD, HP-GC) to a time series and returns a consolidated comparison of results.
filter_all( y, wavelet_wf = "la8", wavelet_J = 4, wavelet_levels = c(3, 4), hpgc_prior = "weak", hpgc_chains = 4, hpgc_iterations = 20000, hpgc_burnin = 5000, verbose = FALSE )
A list of class "signaly_multifilter" containing results from all three methods and a comparison data frame.
Numeric vector of the time series.
Wavelet filter for wavelet decomposition. Default "la8".
Wavelet decomposition depth. Default 4.
Levels to combine for wavelet trend. Default c(3, 4).
Prior configuration for HP-GC. Default "weak".
Number of MCMC chains. Default 4.
MCMC iterations. Default 20000.
MCMC burn-in. Default 5000.
Logical for progress messages.
# \donttest{ y <- cumsum(rnorm(100)) + sin(seq(0, 4*pi, length.out = 100)) result <- filter_all(y, hpgc_iterations = 5000, hpgc_burnin = 1000) # }
Run the code above in your browser using DataLab