Learn R Programming

bayesm (version 3.1-6)

mixDen: Compute Marginal Density for Multivariate Normal Mixture

Description

mixDen computes the marginal density for each dimension of a normal mixture at each of the points on a user-specifed grid.

Usage

mixDen(x, pvec, comps)

Value

An array of the same dimension as grid with density values

Arguments

x

array where \(i\)th column gives grid points for \(i\)th variable

pvec

vector of mixture component probabilites

comps

list of lists of components for normal mixture

Warning

This routine is a utility routine that does not check the input arguments for proper dimensions and type.

Author

Peter Rossi, Anderson School, UCLA, perossichi@gmail.com.

Details

length(comps) is the number of mixture components
comps[[j]] is a list of parameters of the \(j\)th component
comps[[j]]$mu is mean vector
comps[[j]]$rootiis the UL decomp of \(\Sigma^{-1}\)

References

For further discussion, see Chapter 3, Bayesian Statistics and Marketing by Rossi, Allenby, and McCulloch.

See Also

rnmixGibbs