pairwise.Table2.test: Pairwise Chi-squared or Fisher test for 2-dimensional tables

View source: R/aaa.r

pairwise.Table2.testR Documentation

Pairwise Chi-squared or Fisher test for 2-dimensional tables

Description

Pairwise Chi-squared or Fisher test for 2-dimensional tables

Usage

pairwise.Table2.test(tbl, names=rownames(tbl), p.adjust.method="BH", exact=FALSE, ...)

Arguments

tbl

Contingency table

names

Level names

p.adjust.method

See '?p.adjust'

exact

Run exact test?

...

Arguments to test function

Details

Pairwise Chi-squared or Fisher test for 2-dimensional tables.

Alternatives: NCStats::chisqPostHoc() and fifer::chisq.post.hoc(). Both of them are not CRAN packages.

Value

List with test outputs.

Author(s)

Alexey Shipunov

Examples

titanic <- margin.table(Titanic, c(1, 4))
chisq.test(titanic)
pairwise.Table2.test(titanic)

shipunov documentation built on Feb. 16, 2023, 9:05 p.m.