cp.fun.chisq.test(x, method = "fchisq", log.p = FALSE)"fchisq" (equivalent to "default"). See Details.
TRUE, the p-value is given as log(p). Taking the log improves the accuracy when p-value is close to zero. The default is FALSE.
htest" containing the following components:method = "fchisq" (equivalent to "default"), or normalized functional chi-square if method = "nfchisq" (equivalent to "normalized").method = "normalized", it is the p-value of the normalized functional chi-square computed by the standard normal distribution.Two methods are provided to compute the functional chi-square statistic and its p-value. When method = "fchisq" (or "default"), the p-value is computed using the chi-square distribution; when method = "nfchisq" (or "normalized") a normalized functional chi-square is obtained by shifting and scaling the original chi-square and a p-value is computed using the standard normal distribution (Box et al., 2005). The normalized test is more conservative on the degrees of freedom.
Zhang, Y. (2014) Nonparametric Statistical Methods for Biological Network Inference. Unpublished doctoral dissertation, Department of Computer Science, New Mexico State University, Las Cruces, USA.
Zhang, Y. and Song, M. (2013) Deciphering interactions in causal networks without parametric assumptions. arXiv Molecular Networks, arXiv:1311.2707. http://arxiv.org/abs/1311.2707
cp.chisq.test.
x <- matrix(c(4,0,4,0,4,0,1,0,1), 3)
y <- t(x)
z <- matrix(c(1,0,1,4,0,4,0,4,0), 3)
data <- list(x,y,z)
cp.fun.chisq.test(data)
cp.fun.chisq.test(data, method="nfchisq")
Run the code above in your browser using DataLab