This function takes the parameters in the vector par
(upper triangular Gamma/Theta matrix) and returns the full Gamma/Theta.
par2Matrix(par, allowMatrix = FALSE, allowNull = FALSE, zeroRowSums = FALSE)par2Gamma(par, allowMatrix = FALSE, allowNull = FALSE)
par2Theta(par, allowMatrix = FALSE, allowNull = FALSE)
Numeric matrix \(d \times d\). Full Gamma/Theta matrix.
Numeric vector with d
elements.
Upper triangular part of a Gamma/Theta matrix.
If TRUE
and par
is already a matrix, return it as is.
If TRUE
and par
is NULL, return NULL.
If TRUE
the diagonal is set to (-1) times the rowSums.