oupar {glinvci} | R Documentation |
Parameterisation functions of Ornstein-Uhlenbeck model
Description
oupar
is a function that maps from the Ornstein-Uhlenbeck model
parameters to the Gaussian parametersation.
oujac
accepts the same arguments as oupar
and returns the
Jacobian matrix of oupar
.
ouhess
accepts the same arguments as oupar
and returns all the second derivatives oupar
. The returned
values are consistent with the format required by glinv
.
Usage
oupar(par, t, ...)
oujac(par, t, ...)
ouhess(par, t, ...)
Arguments
par |
A numeric vector containing the joint vector of the Ornstein-Uhlenbeck drift matrix, long-term mean, and volitality matrix, which is a lower-triangular Cholesky factor. |
t |
Branch length of the currently processing node. |
... |
Unused in these functions. Their existence is needed because
|
Details
By multivariate Ornstein-Uhlenbeck process, we mean
where is a
-by-
matrix with real entries,
is any real
-vector,
is a
lower-triangular matrix,
is the Brownian motion process.
The parameters of this model is
,
therefore
dimensional.
This package uses parameterisation , where
and
is the same as above defined, and
is the lower-triangular part of
, except that, only on diagonal
entries,
. The use of logarithm is for
eliminating multiple local maxima in the log-likelihood.
The par
arguemnt is the concatenation of column-major-flattened
,
, and the column-major-flattened lower-triangular part
of
.
Value
oupar
returns the a vector of concatenated ,
where
is the lower triangular part of
.
oujac
returns the Jacobian matrix of oupar
. ouhess
returns
a list of three 3D arrays, named Phi
, w
, V
respectively inside the list, in which
ouhess(...)$Phi[m,i,j]
contains
the cross second-order partial derivative of (here we treat the matrix
as a
column-major-flattened vector) with respect to the
-th and
-th user parameters;
and
ouhess(...)$w[m,i,j]
and ((parhess[[i]])(...))$V[m,i,j]
analogously contains second-order derivative of and
.