distr_crit: Compute criterion distribution

Description Usage Arguments Details Value See Also Examples

View source: R/distr_crit.R

Description

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

Usage

1
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

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

biogram documentation built on March 31, 2020, 5:14 p.m.