mode_check: Check the Posterior Mode.

Description Usage Arguments Details Value Author(s) Examples

View source: R/Classes.R

Description

Plot the log posterior around the posterior mode values.

Usage

1
2
3
4
5
6
7
8
modecheck(obj,...)

## S3 method for class 'DSGEVAR'
modecheck(obj,gridsize=200,scalepar=NULL,plottransform=FALSE,par_names=NULL,
  save=FALSE,height=13,width=13,...)
## S3 method for class 'EDSGE'
modecheck(obj,gridsize=200,scalepar=NULL,plottransform=FALSE,par_names=NULL,
  save=FALSE,height=13,width=13,...)

Arguments

obj

An object of class ‘EDSGE’ or ‘DSGEVAR’.

gridsize

The number of grid points to use when calculating the log posterior around the mode values.

scalepar

A value to replace the scaling parameter from estimation (‘c’) when plotting the log posterior.

plottransform

Whether to plot the transformed values (i.e., such that the support of each parameter is unbounded), or to plot the untransformed values.

par_names

A vector of expressions containing the name of each parameter.

save

Whether to save the plot(s).

height

If save=FALSE, use this to set the height of the plot(s).

width

If save=FALSE, use this to set the width of the plot(s).

...

Additional arguments (not used).

Details

For an example, see the accompanying vignette.

Value

The function will plot the value of the log posterior around the posterior mode.

Author(s)

Keith O'Hara

Examples

1
2
3
4
## Not run: 
modecheck(NKMest,200,1,FALSE,save=FALSE)

## End(Not run)

kthohr/BMR documentation built on May 20, 2019, 7:04 p.m.