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
x
series 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 thef
values that overlap withx
are used.