chisq_list: List of contingency tables

Description Usage Arguments Examples

View source: R/chisq_list.R

Description

A convenience function to output a list of contingency tables from a list of chi-square tests, as those created by batch_chisq.

Usage

1
2
chisq_list(x, option = c("observed", "expected", "ratio", "percent"),
  print_option = c("none", "markdown", "pandoc", "latex", "html"))

Arguments

x

A list of chi-squared tests.

option

Allows specifying the type of continency table to be produced. The options are: - observed counts, default option. - expected counts. - ratio of observed to expected counts. - percent row percentages.

print_option

Allows specifying the output format, using the kable from package knitr. The default option none produces a list of matrix objects.

Examples

1
2
3
4
b <- batch_chisq(df = testdata, DV = "extortion_victim",
            IV = c("bribe_victim", "size"))

chisq_list(b, option = "ratio", print_option = "pandoc")

prestevez/vicarp documentation built on Jan. 28, 2020, 1:56 p.m.