vec_phi: Convert between hyperparameter list and vector...

Description Usage Arguments Details Value

View source: R/vec_phi.R

Description

Convert between hyperparameter list and vector representation.

Usage

1
2
3
vec_phi(Phi)

ivec_phi(psi)

Arguments

Phi

Hyperparameters as a list with elements lambda, Omega, nu, and tau.

psi

Hyperparameters as an unconstrained numeric vector, or a matrix where each row is one hyperparameter set (see Details).

Details

The unconstrained hyperparameter representation is given by

1
psi <- c(lambda, log_chol(Omega), log(nu), log(tau))

where log_chol is the log-Cholesky decomposition.

Value

For vec_phi, an unconstrained vector or matrix. For ivec_phi, a list with elements lambda, Omega, nu, and tau.


mlysy/losmix documentation built on Jan. 18, 2021, 5:56 a.m.