KLtest: KL test

Description Usage Arguments Value

View source: R/KLtest.R

Description

KLtest Tests for the significance of KL divergence between G(V_c, V_c') and G_R matrices

Usage

1
KLtest(s, null, true_dist, a = 0.05, width = 0.001)

Arguments

s

G(Vc, Vc') matrix distribution to test

null

vector to sample null distributions (singleton indices)

true_dist

Singleton matrix

a

Significant level alpha. Default is 0.05

width

default is 0.001. Can take out if you don't know what it is

Value

Returns A Boolean, 1 if KL-divergence significant (C and C' connected) and 0 if divergence not significant.


lwa19/ICN documentation built on Dec. 23, 2021, 10:23 p.m.