Learn R Programming

vcd (version 0.1-3.5)

expected: Expected Frequencies Table

Description

Computes table of expected frequencies from a n-way table.

Usage

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

Arguments

x
a table.
frequency
indicates, if absolute or relative frequencies should be computed.

Value

  • A table with either absolute or relative frequencies.

Examples

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

Run the code above in your browser using DataLab