independence_table: Independence Table

View source: R/tabletools.R

independence_tableR Documentation

Independence Table

Description

Computes table of expected frequencies (under the null hypotheses of independence) from an n-way table.

Usage

independence_table(x, frequency = c("absolute", "relative"))

Arguments

x

a table.

frequency

indicates whether absolute or relative frequencies should be computed.

Value

A table with either absolute or relative frequencies.

Author(s)

David Meyer David.Meyer@R-project.org

Examples

data("MSPatients")
independence_table(MSPatients)
independence_table(MSPatients, frequency = "relative")

vcd documentation built on Sept. 17, 2024, 1:08 a.m.