intArray: Interaction array

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/intArray.R

Description

Estimates the interaction compositional table with normalization for further analysis according to Egozcue et al. (2015)

Usage

1

Arguments

x

an object of class “intTab”

Details

Estimates the interaction table using its ilr coordinates.

Value

The interaction array

Author(s)

Matthias Templ

References

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.

See Also

intTab

Examples

1
2
3
4
5
data(precipitation) 
tab1prob <- prop.table(precipitation)
tab1 <- indTab(precipitation)
tabINT <- intTab(tab1prob, tab1)
intArray(tabINT)

Example output

Loading required package: robustbase
Loading required package: ggplot2
Loading required package: data.table
Loading required package: e1071
Loading required package: pls

Attaching package: 'pls'

The following object is masked from 'package:stats':

    loadings

sROC 0.1-2 loaded

Attaching package: 'robCompositions'

The following object is masked from 'package:robustbase':

    alcohol

            spring       summer       autumn      winter
30   -1.207475e-02  0.241198299 -0.002127411 -0.11123924
60    2.510404e-02  0.004166978 -0.010422965 -0.01427016
125   4.271038e-05  0.035825501 -0.006257454 -0.01373420
250   1.582011e-02 -0.024941858 -0.011975375  0.02053223
500  -9.018852e-03 -0.011965633  0.001690213  0.02620535
1000 -6.993128e-03 -0.234353368  0.089122588  0.07091758

robCompositions documentation built on Jan. 13, 2021, 10:07 p.m.