report.chitest {reporter}R Documentation

CReport the results of chi-square test

Description

The function reports the results of several (with several variables) chi-square tests.

Usage

report.chitest(x, y, dataset, simulate.p.value = TRUE, cramer = FALSE, ...)

Arguments

x

The names of the first set of categorical variables.

y

The names of the second set of categorical variables.

dataset

The dataframe with categorical variables.

simulate.p.value

Wheter to estimate the p-value by simulations (simulate.p.value=TRUE) or analytically (simulate.p.value=FALSE).

cramer

Wheter to calculate the Cramer's V coefficient.

Note

One or several categorical variables can be set in x and/or x. When several variables are set, they have to be in a vector format.

Author(s)

Marjan Cugmas

Examples

report.chitest(x = c("cyl", "vs", "am"), y = "gear", dataset = mtcars, simulate.p.value = TRUE)

[Package reporter version 0.0.0.903 Index]