Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

independence_table

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)

Examples

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

vcd

Visualizing Categorical Data

v1.4-10
GPL-2
Authors
David Meyer [aut, cre], Achim Zeileis [aut] (<https://orcid.org/0000-0003-0918-3766>), Kurt Hornik [aut], Florian Gerber [ctb], Michael Friendly [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.