prior: Parameterize the Prior Distributions.

Description Usage Arguments Details Author(s) Examples

View source: R/Prior.R

Description

Plot and print the moments of a specified prior distribution.

Usage

1
prior(priorform,priorpars,parname=NULL,moments=TRUE,NR=NULL,NC=NULL)

Arguments

priorform

This should be a valid prior form for the EDSGE or DSGEVAR functions, such as “Gamma” or “Beta”.

priorpars

The relevant parameters of the distribution.

parname

A title for the plot.

moments

Whether to print the mean, mode, and variance of the distribution.

NR

For use with multiple plots. See the vignette for an example.

NC

For use with multiple plots. See the vignette for an example.

Details

This function can be used when selecting appropriate prior distributions for the EDSGE and DSGEVAR functions.

Author(s)

Keith O'Hara

Examples

1
2
3
4
5
## Not run: 
prior("Normal",c(0,1))
prior("Gamma",c(2,2))

## End(Not run)

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