matpower {envlpaster}R Documentation

matpower

Description

Raises a matrix to a power.

Usage

  matpower(a,alpha)

Arguments

a

An n \times n matrix

alpha

The power which to raise the matrix to.

Value

ai

The matrix raised to the desired power

Examples

## Not run: library(envlpaster)
data(simdata30nodes)
data <- simdata30nodes.asterdata
nnode <- length(vars)
xnew <- as.matrix(simdata30nodes[,c(1:nnode)])
m1 <- aster(xnew, root, pred, fam, modmat)
avar <- m1$fisher
matpower(a = avar, alpha = -1)
## End(Not run)

[Package envlpaster version 0.1-2 Index]