Trailing moving inner product of two series (propagate NAs).
n-period moving inner product of two variables for the current and previous
observations, propagating NAs.
Syntax: @movinner(x, y, n)
x: series
y: series
n integer, series
Return: series
For each observation
and integer
, compute the inner product of the current and previous
observations of the series,
and propagating missing values (NAs).
If
n is not an integer, the integer floor
will be used.
Examples
show @movinner(x, y, 12)
produces a linked series of the moving inner product of the series x and y where NAs are propagated.
Cross-references
See also
@movsumsq for the trailing moving sums-of-squares.
See
@minner for an NA-excluding version of this function.