robCompositions (version 2.1.0)

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")

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”.

Value

The ilr coordinates

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
# NOT RUN {
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