| numeric-utils | R Documentation |
Functions for numerical algorithms
dspd(M, decomposition = "svd")
## S3 method for class 'basecor'
hessian(func, x, method = "Richardson", method.args = list(), ...)
## S3 method for class 'basepcor'
hessian(func, x, method = "Richardson", method.args = list(), ...)
## S3 method for class 'graphpcor'
hessian(func, x, method = "Richardson", method.args = list(), ...)
M |
square matrix. |
decomposition |
character to inform which decomposition is to be applied to the hessian. The options are "eigen", "svd" and "chol". Default is "svd". |
func |
model object definition for a correlation matrix. |
x |
for a |
method |
see |
method.args |
see |
... |
used to pass |
dspd returns a list with the decomposition elements,
"logDeterminant" (of the original matrix),
"sqrt" (its 'square root') and
"sqrtInv" (its inverse 'square root').
hessian returns the Hessian
matrix with the Hessian
dspd(): hessian: Evaluate the Hessian of the KLD for a basecor.
spd: decompose a positive definite matrix,
and compute useful elements out of that.
hessian(basecor): Evaluate the Hessian for a basecor.
hessian(basepcor): Evaluate the hessian of the KLD for a basepcor.
hessian(graphpcor): Evaluate the hessian of the KLD for a graphpcor
correlation model around a base model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.