Last data update: 2014.03.03
|
R: Augmented Chi-squared test
xchisq.test | R Documentation |
Augmented Chi-squared test
Description
This augmented version of chisq.test provides more verbose
output.
Usage
xchisq.test(x, y = NULL, correct = TRUE, p = rep(1/length(x), length(x)),
rescale.p = FALSE, simulate.p.value = FALSE, B = 2000)
Arguments
x, y, correct, p, rescale.p, simulate.p.value, B |
as in chisq.test .
|
See Also
chisq.test
Examples
# Physicians' Health Study data
phs <- cbind(c(104,189),c(10933,10845))
rownames(phs) <- c("aspirin","placebo")
colnames(phs) <- c("heart attack","no heart attack")
phs
xchisq.test(phs)
Results
|