# crossStat {#crossstat}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`crossStat(X, Y)`

## Arguments {#arguments}

**X** and **Y** are numeric vectors of the same size.

## Details {#details}

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

## Examples {#examples}

```
x=1 NULL 2 3
y=4 3 NULL 2
crossStat(x,y);
// output: (2,4,6,10,20,10)
```

