Learn R Programming

mosaic (version 0.9-0)

xchisq.test: Augmented Chi-squared test

Description

This augmented version of chisq.test provides more verbose output.

Usage

xchisq.test(...)

Arguments

...
Arguments passed directly to chisq.test.

See Also

chisq.test

Examples

Run this code
# 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)

Run the code above in your browser using DataLab