Lattice Grid

The grid (core) ยท console.warn

statistics.bayes: '{colId}' is not a binary ...

Printed by The grid (core), prefixed [lattice], since 1.125.0.

Warnings reference › stat.bayes-binary

Identifier
stat.bayes-binary
Raised by
The grid (core)
Since
1.125.0

What happened

statistics.bayes() estimates the rate of a binary measure - one holding exactly two distinct values - and this column holds a different number, so there is no single rate to estimate. The call returned null (the same answer a missing column gives) and fired once, naming the column and the count, rather than silently treating a non-binary column as two-valued.

The fix

Pass a column that holds exactly two distinct values, or use compare/chiSquare for a measure with three or more categories.

The smallest fix

grid.statistics.bayes('passed');  // a column of true and false

Reference

Covered in full at the API reference.