| 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
dx(t) = -H(x(t) - \theta)dt + \Sigma_x dW(t)
where H is a k-by-k matrix with real entries,
\theta is any real k-vector, \Sigma_x is a
lower-triangular matrix, W(t) is the Brownian motion process.
The parameters of this model is (H,\theta,\Sigma_x),
therefore k^2+k+k(k+1)/2 dimensional.
This package uses parameterisation (H,\theta,\Sigma_x'), where
H and \theta is the same as above defined, and \Sigma_x'
is the lower-triangular part of \Sigma_x, except that, only on diagonal
entries, \Sigma_x'=log(\Sigma_x). The use of logarithm is for
eliminating multiple local maxima in the log-likelihood.
The par arguemnt is the concatenation of column-major-flattened
H, \theta, and the column-major-flattened lower-triangular part
of \Sigma_x'.
Value
oupar returns the a vector of concatenated (\Phi, w, V'),
where V' is the lower triangular part of V. 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 \Phi_m (here we treat the matrix \Phi as a
column-major-flattened vector) with respect to the i-th andj-th user parameters;
and ouhess(...)$w[m,i,j] and ((parhess[[i]])(...))$V[m,i,j]
analogously contains second-order derivative of w_m and V'_m.