Learn R Programming

robCompositions (version 2.4.1)

perturbation: Perturbation and powering

Description

Perturbation and powering for two compositions.

Usage

perturbation(x, y)

powering(x, a)

Value

Result of perturbation or powering

Arguments

x

(compositional) vector containing positive values

y

(compositional) vector containing positive values or NULL for powering

a

constant, numeric vector of length 1

Author

Matthias Templ

References

Aitchison, J. (1986) The Statistical Analysis of Compositional Data Monographs on Statistics and Applied Probability. Chapman and Hall Ltd., London (UK). 416p.

Examples

Run this code
data(expenditures)
x <- expenditures[1 ,]
y <- expenditures[2, ]
perturbation(x, y)
powering(x, 2)

Run the code above in your browser using DataLab