Calculate Chi-squared-based measure
Computes Chi-squared-based measure between features and target vector.
calc_cs(feature, target_b, len_target, pos_target)
target in bits (as per
length of the target vector.
number of positive cases in the target vector.
numeric vector of length 1 representing computed Chi-square values.
features must be binary, i.e. contain only 0
and 1 values.
The function was designed to be as fast as possible subroutine of
calc_criterion and might be cumbersome if directly called by a user.
chisq.test - Pearson's chi-squared test for count data.
1 2 3 4
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.