Learn R Programming

robCompositions (version 2.4.1)

ilr.2x2: ilr coordinates in 2x2 compositional tables

Description

ilr coordinates of original, independent and interaction compositional table using SBP1 and SBP2

Usage

ilr.2x2(x, margin = 1, type = "independence", version = "book")

Value

The ilr coordinates

Arguments

x

a 2x2 table

margin

for 2x2 tables available for a whole set of another dimension. For example, if 2x2 tables are available for every country.

type

choose between “independence” or “interaction” table

version

the version used in the “paper” below or the version of the “book”.

Author

Kamila Facevicova, Matthias Templ

References

Facevicova, K., Hron, K., Todorov, V., Guo, D., Templ, M. (2014). Logratio approach to statistical analysis of 2x2 compositional tables. Journal of Applied Statistics, 41 (5), 944--958.

Examples

Run this code
data(employment) 
ilr.2x2(employment[,,"AUT"])
ilr.2x2(employment[,,"AUT"], version = "paper")
ilr.2x2(employment, margin = 3, version = "paper")
ilr.2x2(employment[,,"AUT"], type = "interaction")

Run the code above in your browser using DataLab