plot.bayesm.nmix {bayesm}R Documentation

Plot Method for MCMC Draws of Normal Mixtures

Description

plot.bayesm.nmix is an S3 method to plot aspects of the fitted density from a list of MCMC draws of normal mixture components. Plots of marginal univariate and bivariate densities are produced.

Usage

## S3 method for class 'bayesm.nmix':
plot(x,names,burnin,Grid,bi.sel,nstd, ...)

Arguments

x An object of either S3 class, bayesm.nmix, or S3 class, mcmc
names optional character vector of names for each of the dimensions
burnin number of draws to discard for burn-in, def: .1*nrow(X)
Grid matrix of grid points for densities, def: mean +/- nstd std deviations
bi.sel list of vectors, each giving pairs for bivariate distributions, def: list(c(1,2))
nstd number of standard deviations for default Grid, def: 2
... standard graphics parameters

Details

Typically, plot.bayesm.nmix will be invoked by a call to the generic plot function as in plot(object) where object is of class bayesm.nmix. These objects are lists of three components. The first component is an array of draws of mixture component probabilties. The second component is not used. The third is a lists of lists of lists with draws of each of the normal components.

plot.bayesm.nmix can also be used as a standard function, as in plot.bayesm.nmix(list).

Author(s)

Peter Rossi, Graduate School of Business, University of Chicago, Peter.Rossi@ChicagoGsb.edu.

See Also

rnmixGibbs, rhierMnlRwMixture, rhierLinearMixture

Examples

##
## not run
#  out=rnmix(Data,Prior,Mcmc)
#  plot(out,bi.sel=list(c(1,2),c(3,4),c(1,3)))
#        plot bivariate distributions for dimension 1,2; 3,4; and 1,3
#


[Package bayesm version 2.1-2 Index]