Ness: Effective sample size for G^2 test in BNs with case control...

View source: R/Ness.R

Effective sample size for G^2 test in BNs with case control dataR Documentation

Effective sample size for G^2 test in BNs with case control data

Description

Effective sample size for G^2 test in BNs with case control data.

Usage

Ness(propNt, N, K = 10000) 

Arguments

propNt

A numerical vector with the proportions (distribution) of the (single) selection variable.

N

The sample size of the data.

K

The number of repetitions to be used for estimating the effective sample size.

Details

When dealing with case control data, spurious correlations or relationships arise. To deal with this one way is to adjust the sample size used in the G^2 test statistic. This function does exactly this, estimates the effective sample size as per the Borboudakis and Tsamardinos (2012) suggestion. The idea is that after learning the skeleton with the usual G^2 test, one should go to the edges and perform a conditional G^2

Value

The estimated effective sample size.

Author(s)

Michail Tsagris

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr

References

Borboudakis G. and Tsamardinos I. (2015). Bayesian Network Learning with Discrete Case-Control Data. 31st Conference on Uncertainty in Artificial Intelligence (UAI), 151-160.

See Also

SES, MMPC, testIndLogistic

Examples

Ness(c(0.3, 0.7), N = 1000, K = 10000) 

MXM documentation built on Aug. 25, 2022, 9:05 a.m.