Lattice Grid Buy a licence

The grid (core) ยท console.warn

statistics.compare: {forced} needs a numeric...

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

Warnings reference › compare:numeric-needed

Identifier
compare:numeric-needed
Raised by
The grid (core)
Since
1.106.0

What happened

A specific test was forced - a t-test, Mann-Whitney, ANOVA or Kruskal-Wallis - and all of them compare numeric distributions. The column is categorical, so the test cannot be run and the call returns null rather than coercing values into numbers.

The fix

Drop the test override and let the column family choose (a categorical column gets a chi-square or proportions test), or compare a numeric column.

Reference

Covered in full at the API reference.