distr_crit {biogram}R Documentation

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.

Details

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

Value

An object of class criterion_distribution.

See Also

calc_criterion.

Examples

target_feature <- create_feature_target(10, 375, 15, 600) 
distr_crit(target = target_feature[,1], feature = target_feature[,2])

[Package biogram version 1.6.3 Index]