powered by
Computes criterion distribution under null hypothesis for all contingency tables possible for a feature and a target.
distr_crit(target, feature, criterion = "ig", iter_limit = 200)
{0,1}-valued target vector. See Details.
{0,1}-valued feature vector. See Details.
criterion used for calculations of distribution. See calc_criterion for the list of avaible criteria.
calc_criterion
limit the number of calculated contingence matrices. If NULL, computes all possible contingence matrices.
NULL
An object of class criterion_distribution.
criterion_distribution
both target and feature vectors may contain only 0 and 1.
target
feature
calc_criterion.
# NOT RUN { target_feature <- create_feature_target(10, 375, 15, 600) distr_crit(target = target_feature[,1], feature = target_feature[,2]) # }
Run the code above in your browser using DataLab