Convolve two time series, using a backward-looking method.
This function provides a straightforward convolution, which may be useful to
those who prefer not to use convolve() and filter in the
stats package.
Arguments
- x
a numerical vector of observations.
- f
a numerical vector of filter coefficients.
- end
a flag that controls how to handle the points of the
xseries that have indices less than the length off. Ifend=0, the values are set to 0. Ifend=1, the original x values are used there. Ifend=2, that fraction of thefvalues that overlap withxare used.
