transform_params: Convert between parameterizations of the multivariate skew...

View source: R/utilities.R

transform_paramsR Documentation

Convert between parameterizations of the multivariate skew normal distribution.

Description

Convert between parameterizations of the multivariate skew normal distribution.

Usage

transform_params(Sigma, alpha)

Arguments

Sigma

A scale matrix.

alpha

A vector for the skew parameter.

Value

A list:

  • delta: a reparameterized skewness vector, a transformed version of alpha.

  • omega: a diagonal matrix of the same dimensions as Sigma, the diagonal elements are the square roots of the diagonal elements of Sigma.

  • psi: another reparameterized skewness vector, utilized in the sampler.

  • G: a reparameterized version of Sigma, utilized in the sampler.

Examples

library(COMIX)
# Scale and skew parameters:
Sigma <- matrix(0.5, nrow = 4, ncol = 4) + diag(0.5, nrow = 4)
alpha <- c(0, 0, 0, 5)
transformed_parameters <- transform_params(Sigma, alpha)

COMIX documentation built on Nov. 23, 2022, 5:07 p.m.