| prior | R Documentation |
Creates a prior distribution object for use in Bayesian DSGE estimation.
prior(distribution, ...)
distribution |
Character string specifying the distribution family.
One of |
... |
Distribution parameters (see Details). |
Distribution parameterizations:
mean, sd
shape1, shape2 (alpha, beta parameters)
shape, rate
min, max
shape, scale — density:
p(x) \propto x^{-(shape+1)} \exp(-scale/x)
s, nu — inverse gamma of type 1, a prior on a
standard deviation whose square is inverse gamma (Dynare's
inv_gamma_pdf): p(x) \propto x^{-(nu+1)} \exp(-s/(2x^2)).
Alternatively give mean and sd (use sd = Inf for an infinite
variance) and s, nu are derived as in Dynare.
An object of class "dsge_prior".
prior("normal", mean = 0, sd = 1)
prior("beta", shape1 = 2, shape2 = 2)
prior("inv_gamma", shape = 0.01, scale = 0.01)
prior("inv_gamma1", mean = 0.1, sd = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.