SU: Symmetrical Uncertainty diagnostic This functions runs...

Description Usage Arguments Value Examples

View source: R/entropy.R

Description

Symmetrical Uncertainty diagnostic This functions runs symmetrical uncertainty for two features, returning the score

Usage

1
SU(x, y, base = exp(1))

Arguments

x

A vector containing a categorical feature

y

A vector containing other categorical feature

base

The base used for the logaritmic function. The default is exp(1) (~2.718)

Value

A numerical value for the Symetrical Uncertainty score

Examples

1
2
3
4
5
6
 data(scDengue)
 exprs <- SummarizedExperiment::assay(scDengue, 'logcounts')
 discrete_expression <- as.data.frame(discretize_exprs(exprs))
 discrete_expression_gene_1 <- discrete_expression$V1
 discrete_expression_gene_2 <- discrete_expression$V2
 SU(discrete_expression_gene_1,discrete_expression_gene_2)

FCBF documentation built on Nov. 8, 2020, 8:30 p.m.