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

View source: R/summary.bayesm.nmix.R

summary.bayesm.nmixR Documentation

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 class '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

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

Author(s)

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

See Also

summary.bayesm.mat, summary.bayesm.var

Examples

## Not run: out=rnmix(Data,Prior,Mcmc); summary(out)

bayesm documentation built on Sept. 24, 2023, 1:07 a.m.