Learn R Programming

bayesm (version 3.1-6)

summary.bayesm.nmix: Summarize Draws of Normal Mixture Components

Description

summary.bayesm.nmix is an S3 method to display summaries of the distribution implied by draws of Normal Mixture Components. Posterior means and variance-covariance matrices are displayed.

Note: 1st and 2nd moments may not be very interpretable for mixtures of normals. This summary function can take a minute or so. The current implementation is not efficient.

Usage

# S3 method for bayesm.nmix
summary(object, names, burnin=trunc(0.1*nrow(probdraw)), ...)

Arguments

object

an object of class bayesm.nmix, a list of lists of draws

names

optional character vector of names fo reach dimension of the density

burnin

number of draws to burn-in (def: \(0.1*nrow(probdraw)\))

...

parms to send to summary

Author

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

Details

An object of class bayesm.nmix is a list of three components:

probdraw

a matrix of \(R/keep\) rows by dim of normal mix of mixture prob draws

second comp

not used

compdraw

list of list of lists with draws of mixture comp parms

See Also

summary.bayesm.mat, summary.bayesm.var

Examples

Run this code
if (FALSE) out=rnmix(Data,Prior,Mcmc); summary(out)

Run the code above in your browser using DataLab