powered by
bandfilt
bandfilt does a bandpass filtering of a time series
bandfilt(y, q, pl, pu)
the series, a vector or a time series
scalar, half of length of symmetric weights
scalar, lower periodicity ( >= 2 )
scalar, upper periodicity ( > pl )
yf (n,1) vector, the centered filtered time series with NA's at beginning and ending
# NOT RUN { data(GDP) yf <- bandfilt(GDP,5,2,6) # } # NOT RUN { plot(GDP); lines(yf+mean(GDP),col="red") # }
Run the code above in your browser using DataLab