Returns a structured report list rather than erroring. Useful as a
preflight check before passing y to oda_fit() or
cta_fit().
Usage
oda_validate_group(y, binary_only = FALSE)
Arguments
- y
Integer (or coercible to integer) class vector.
- binary_only
Logical; if TRUE, flags more than 2 classes as
an issue (useful for UniODA workflows).
Value
Named list with: ok (logical), n_classes (integer),
class_levels (integer vector), class_counts (named integer
table), issues (character vector, empty if ok).