indTab | R Documentation |
Estimates the expected frequencies from an m-way table under the null hypotheses of independence.
indTab(
x,
margin = c("gmean_sum", "sum"),
frequency = c("relative", "absolute"),
pTabMethod = c("dirichlet", "half", "classical")
)
x |
an object of class table |
margin |
determines how the margins of the table should be estimated (default via geometric mean margins) |
frequency |
indicates whether absolute or relative frequencies should be computed. |
pTabMethod |
to estimate the propability table. Default is ‘dirichlet’. Other available methods:
‘classical’ that is function |
Because of the compositional nature of probability tables, the independence tables should be estimated using geometric marginals.
The independence table(s) with either relative or absolute frequencies.
Matthias Templ
Egozcue, J.J., Pawlowsky-Glahn, V., Templ, M., Hron, K. (2015) Independence in contingency tables using simplicial geometry. Communications in Statistics - Theory and Methods, 44 (18), 3978–3996.
data(precipitation)
tab1 <- indTab(precipitation)
tab1
sum(tab1)
## Not run:
data("PreSex", package = "vcd")
indTab(PreSex)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.