ExpFreq {DescTools} | R Documentation |
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 |
Value
A table with either the absolute or the relative expected frequencies.
Note
This is a copy of the function independence_table
in vcd.
Author(s)
David Meyer <David.Meyer@R-project.org>
See Also
Examples
ExpFreq(Titanic)
ExpFreq(UCBAdmissions, freq="r")
[Package DescTools version 0.99.55 Index]