make_chisq_table: SAS Chi-Square Table

Description Usage Arguments Examples

View source: R/make_chisq_table.R

Description

This function emulates the 'ChiSq' table returned by SAS

Usage

1
make_chisq_table(x, exact = FALSE)

Arguments

x

A contingency table

exact

Boolean argument, default FALSE, to use Fisher's e xact test for tables larger than 2x2

Examples

1
2
3
A <- structure(1:4, dim = c(2L, 2L), 
               dimnames = list(c("A", "B"), c("X", "Y")))
make_chisq_table(A)

collinn/sassyR documentation built on May 1, 2020, 1:59 a.m.