Learn R Programming

DescTools (version 0.99.19)

ExpFreq: Expected Frequencies

Description

Calculate the expected frequencies of an n-way table assuming independence.

Usage

ExpFreq(x, freq = c("abs", "rel"))

Arguments

x
a table.

freq
indicates, whether absolute or relative frenquencies should be computed. Can either be "abs" or "rel". Partial matching is supported.

Value

See Also

chisq.test

Examples

Run this code
ExpFreq(Titanic)

ExpFreq(UCBAdmissions, freq="r")

Run the code above in your browser using DataLab