mixDen: Compute Marginal Density for Multivariate Normal Mixture

Description Usage Arguments Details Value Warning Author(s) References See Also

View source: R/mixDen.R

Description

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

Usage

1
mixDen(x, pvec, comps)

Arguments

x

array where ith column gives grid points for ith variable

pvec

vector of mixture component probabilites

comps

list of lists of components for normal mixture

Details

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

Value

An array of the same dimension as grid with density values

Warning

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

Author(s)

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

References

For further discussion, see Chapter 3, Bayesian Statistics and Marketing by Rossi, Allenby, and McCulloch.
http://www.perossi.org/home/bsm-1

See Also

rnmixGibbs


bayesm documentation built on July 21, 2017, 7:18 p.m.

Search within the bayesm package
Search all R packages, documentation and source code