Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

msqrt

Square Root Matrix


Description

Compute the symmetric square root of a positive definite matrix

Usage

msqrt(M)

Arguments

M

A positive definite matrix

Details

Use spectral decomposition to compute the square root of a positive definite matrix

Value

mtxsqrt

The square root matrix

invsqrt

The inverse of the square root matrix

Note

This command is used in some of the MTS functions.

Author(s)

Ruey S. Tsay

Examples

m=matrix(c(1,0.2,0.2,1),2,2)
m1=msqrt(m)
names(m1)

MTS

All-Purpose Toolkit for Analyzing Multivariate Time Series (MTS) and Estimating Multivariate Volatility Models

v1.0
Artistic License 2.0
Authors
Ruey S. Tsay and David Wood
Initial release
2018-10-8

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.