Learn R Programming

vcd (version 1.4-13)

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"))

Value

A table with either absolute or relative frequencies.

Arguments

x

a table.

frequency

indicates whether absolute or relative frequencies should be computed.

Author

David Meyer David.Meyer@R-project.org

Examples

Run this code
data("MSPatients")
independence_table(MSPatients)
independence_table(MSPatients, frequency = "relative")

Run the code above in your browser using DataLab