plot.bayesm.mat {bayesm} | R Documentation |

## Plot Method for Arrays of MCMC Draws

### Description

`plot.bayesm.mat`

is an S3 method to plot arrays of MCMC draws. The columns in the array correspond to parameters and the rows to MCMC draws.

### Usage

```
## S3 method for class 'bayesm.mat'
plot(x,names,burnin,tvalues,TRACEPLOT,DEN,INT,CHECK_NDRAWS, ...)
```

### Arguments

`x` |
An object of either S3 class, |

`names` |
optional character vector of names for coefficients |

`burnin` |
number of draws to discard for burn-in (def: |

`tvalues` |
vector of true values |

`TRACEPLOT` |
logical, |

`DEN` |
logical, |

`INT` |
logical, |

`CHECK_NDRAWS` |
logical, |

`...` |
standard graphics parameters |

### Details

Typically, `plot.bayesm.mat`

will be invoked by a call to the generic plot function as in `plot(object)`

where object is of class `bayesm.mat`

. All of the `bayesm`

MCMC routines return draws in this class (see example below). One can also simply invoke `plot.bayesm.mat`

on any valid 2-dim array as in `plot.bayesm.mat(betadraws)`

.

`plot.bayesm.mat`

paints (by default) on the histogram:

green "[]" delimiting 95% Bayesian Credibility Interval

yellow "()" showing +/- 2 numerical standard errors

red "|" showing posterior mean

`plot.bayesm.mat`

is also exported for use as a standard function, as in `plot.bayesm.mat(matrix)`

### Author(s)

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

### Examples

```
## Not run: out=runiregGibbs(Data,Prior,Mcmc); plot(out$betadraw)
```

*bayesm*version 3.1-6 Index]