bandfilt
does a bandpass filtering of a time series
bandfilt
does a bandpass filtering of a time seriesbandfilt(y, q, pl, pu)
y
: the series, a vector or a time seriesq
: scalar, half of length of symmetric weightspl
: scalar, lower periodicity ( >= 2 )pu
: scalar, upper periodicity ( > pl )yf (n,1) vector, the centered filtered time series with NA's at beginning and ending
data(GDP) yf <- bandfilt(GDP,5,2,6) plot(GDP); lines(yf+mean(GDP),col="red")
Useful links