mixDenBi
computes the implied bivariate marginal density from a mixture of normals with specified mixture probabilities and component parameters.
mixDenBi(i, j, xi, xj, pvec, comps)
An array (length(xi)=length(xj) x 2
) with density value
index of first variable
index of second variable
grid of values of first variable
grid of values of second variable
normal mixture probabilities
list of lists of components
This routine is a utility routine that does not check the input arguments for proper dimensions and type.
Peter Rossi, Anderson School, UCLA, perossichi@gmail.com.
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]]$rooti | is the UL decomp of \(\Sigma^{-1}\) |
For further discussion, see Chapter 3, Bayesian Statistics and Marketing by Rossi, Allenby, and McCulloch.
rnmixGibbs
, mixDen