crossStat

Syntax

crossStat(X, Y)

Arguments

X and X are vectors of the same size.

Details

Return a tuple with the following elements: sum(isValid(X) && isValid(Y)), sum(X), sum(Y), sum2(X), sum2(Y), sum(X*Y)

Examples

$ x=1 NULL 2 3
$ y=4 3 NULL 2
$ crossStat(x,y);
(2,4,6,10,20,10)