cp.chisq.test(x, method = "chisq", log.p = FALSE)"chisq". 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 = "chisq" (equivalent to "default"), or normalized chi-square if method = "nchisq" (equivalent to "normalized").method = "chisq" or "default"). If method = "nchisq" (or "normalized"), it is the p-value of the normalized chi-square statistic using the standard normal distribution.Two methods are provided to compute the chi-square statistic and its p-value. When method = "chisq" (or "default"), the p-value is computed using the chi-square distribution; when method = "nchisq" (or "normalized") a normalized 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.
Song M., Zhang Y., Katzaroff A. J., Edgar B. A., and Buttitta L. (2014). Hunting complex differential gene interaction patterns across molecular contexts. Nucleic Acids Research 42(7), e57. Retrieved from http://nar.oxfordjournals.org/content/42/7/e57.long
Zar, J. H. (2010). Biostatistical Analysis, 5th Edition. Prentice Hall, New Jersey.
Zhang, Y., Liu, Z. L., and Song, M. (2015) ChiNet uncovers rewired transcription subnetworks in tolerant yeast for advanced biofuels conversion. Nucleic Acids Research 43(9), 4393-4407. Retrieved from http://nar.oxfordjournals.org/content/43/9/4393.long
cp.fun.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.chisq.test(data)
cp.chisq.test(data, method="nchisq")
Run the code above in your browser using DataLab