Learn R Programming

sn (version 0.33)

msn.marginal: Marginal components of a multivariate skew-normal distribution

Description

Computes the marginal distribution of a subset of components of a multivariate skew-normal distribution.

Usage

msn.marginal(xi, Omega, alpha, comp)
msn.marginal(dp=, comp)

Arguments

xi
a numeric vector of length d, say, giving the location parameter.
Omega
a covariance matrix of dimension (d,d).
alpha
a numeric vector of length d, which regulates the shape of the density.
comp
a vector containing a subset of 1:d selecting the components of the marginal distribution. A permutation of 1:d is allowed, and the components of comp do not need to be sorted.
dp
a list containing the components xi, Omega, alpha

Value

  • A list containing components xi, Omega, alpha with the parameters of the marginal distribution. If length(comp) is equal to r, say, then the new components are of size r, (r,r), r, respectively.

synopsis

msn.marginal(xi=NULL, Omega=NULL, alpha=NULL, comp=1:d, dp=NULL)

background

See Azzalini and Capitanio (1999) for background information.

References

Azzalini, A. and Capitanio, A. (1999). Statistical applications of the multivariate skew-normal distribution. J.Roy.Statist.Soc. B 61, 579--602.

See Also

dmsn, msn.conditional, msn.affine

Examples

Run this code
xi <- c(10,0,-30)
Omega <- 5*diag(3)+outer(1:3,1:3)
alpha <- c(1,-3,5)
marg31 <- msn.marginal(xi,Omega,alpha,c(3,1))

Run the code above in your browser using DataLab