Learn R Programming

compositions (version 2.0-8)

powerofpsdmatrix: power transform of a matrix

Description

Computes the power of a positive semi-definite symmetric matrix.

Usage

powerofpsdmatrix( M , p,...)

Value

U%*% D^p %*% t(P) where the UDP is the singular value decomposition of M.

Arguments

M

a matrix, preferably symmetric

p

a single number giving the power

...

further arguments to the singular value decomposition

Author

K.Gerald v.d. Boogaart http://www.stat.boogaart.de

Details

for a symmetric matrix the computed result can actually be considered as a version of the given power of the matrix fullfilling the relation: $$M^pM^q=M^{p+q}$$ The symmetry of the matrix is not checked.

Examples

Run this code
data(SimulatedAmounts)
d <- ilr(sa.lognormals)
var( d %*% powerofpsdmatrix(var(d),-1/2)) # Unit matrix

Run the code above in your browser using DataLab