mvn_dist: Derivatives of the Log Density of Multivariate Normal...

mvn_distR Documentation

Derivatives of the Log Density of Multivariate Normal Distribution

Description

The first and second derivative of the log density of the Multivariate Normal Distribution

Usage

psi_mvn(theta, x, Sigma = NULL)

mvn(Sigma = NULL)

Arguments

theta

parameters to be estimated, can include elements of the covariance matrix

x

random variable x, taken one row at a time

Sigma

optional; either a fully supplied covariance matrix, or a single digit indicating the diagonal of the covariance matrix. If not supplied, the covariance matrix is estimated.

Value

list containing two elements

f

the evaluation of the first derivative

grad

the evaluation of the second derivative


dannyjameswilliams/truncsm documentation built on Aug. 22, 2022, 3:44 p.m.