intTab | R Documentation |
Estimates the interaction table based on clr and inverse clr coefficients.
intTab(x, y, frequencies = c("relative", "absolute"))
x |
an object of class table |
y |
the corresponding independence table which is of class “intTab”. |
frequencies |
indicates whether absolute or relative frequencies should be computed. |
Because of the compositional nature of probability tables, the independence tables should be estimated using geometric marginals.
intTabThe interaction table(s) with either relative or absolute frequencies.
signsThe sign illustrates if there is an excess of probability (plus), or a deficit (minus) regarding to the estimated probability table and the independece table in the clr space.
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)
tab1prob <- prop.table(precipitation)
tab1 <- indTab(precipitation)
intTab(tab1prob, tab1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.