Learn R Programming

infer (version 0.3.1)

chisq_stat: A shortcut wrapper function to get the observed test statistic for a chisq test. Uses stats::chisq.test, which applies a continuity correction.

Description

A shortcut wrapper function to get the observed test statistic for a chisq test. Uses stats::chisq.test, which applies a continuity correction.

Usage

chisq_stat(data, formula, ...)

Arguments

data

a data frame that can be coerced into a tibble

formula

a formula with the response variable on the left and the explanatory on the right

...

additional arguments for stats::chisq.test