chi3 function

The partition of the Pearson three-way index