Computes Chi-squared-based measure between features and target vector.

1 | ```
calc_cs(feature, target_b, len_target, pos_target)
``` |

`feature` |
feature vector. |

`target_b` |
target in bits (as per |

`len_target` |
length of the target vector. |

`pos_target` |
number of positive cases in the target vector. |

A `numeric`

vector of length 1 representing computed Chi-square values.

Both `target`

and `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.

`test_features`

.

`chisq.test`

- Pearson's chi-squared test for count data.

1 2 3 4 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.