Learn R Programming

biogram (version 1.6.3)

distr_crit: Compute criterion distribution

Description

Computes criterion distribution under null hypothesis for all contingency tables possible for a feature and a target.

Usage

distr_crit(target, feature, criterion = "ig", iter_limit = 200)

Arguments

target

{0,1}-valued target vector. See Details.

feature

{0,1}-valued feature vector. See Details.

criterion

criterion used for calculations of distribution. See calc_criterion for the list of avaible criteria.

iter_limit

limit the number of calculated contingence matrices. If NULL, computes all possible contingence matrices.

Value

An object of class criterion_distribution.

Details

both target and feature vectors may contain only 0 and 1.

See Also

calc_criterion.

Examples

Run this code
# 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