robCompositions (version 2.1.0)

perturbation: Perturbation and powering

Description

Perturbation and powering for two compositions.

Usage

perturbation(x, y)

powering(x, a)

Arguments

x

(compositional) vector containing positive values

y

(compositional) vector containing positive values or NULL for powering

a

constant, numeric vector of length 1

Value

Result of perturbation or powering

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
# NOT RUN {
data(expenditures)
x <- expenditures[1 ,]
y <- expenditures[2, ]
perturbation(x, y)
powering(x, 2)
# }

Run the code above in your browser using DataCamp Workspace