Usually the lower-cased enum name, but ChiSquared is spelled chisq — and the difference matters: toString prints this, so an enum name that is not the keyword produces output that re-parses as something else entirely (chisquared(x) reads as chisquared * x). Same trap Query.ProbOf has.