sigma12: sigma12

Description Usage Arguments Author(s) References Examples

Description

Computes square root of matrix Sigma (using Spectral Decomposition).

Usage

1

Arguments

sigma

Positive definite matrix.

Author(s)

Joseph W. McKean

References

Kloke and McKean (2014), Nonparametrics Using R, Boca Raton: Chapman-Hall.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (sigma) 
{
    temp <- eigen(sigma, symmetric = TRUE)
    sigma12 <- temp$vectors %*% diag(temp$values^0.5) %*% t(temp$vectors)
    sigma12
  }

kloke/rbgee documentation built on May 20, 2019, 12:34 p.m.