| vcov.qpm_estimate | R Documentation |
Posterior covariance and credible intervals
## S3 method for class 'qpm_estimate'
vcov(object, ...)
## S3 method for class 'qpm_estimate'
confint(object, parm = NULL, level = 0.9, ...)
object |
A |
... |
Unused. |
parm |
Parameters to report; default all. |
level |
Credible level. |
vcov() returns the posterior covariance matrix of the
estimated parameters; confint() returns equal-tailed posterior
credible intervals (posterior quantiles, not asymptotic intervals).
m <- qpm_model(variables = vars(x = "x"), shocks = shocks(e),
equations = eqs(x ~ rho * x[-1] + e),
params = list(rho = 0.5))
obs <- simulate(qpm_solve(qpm_calibrate(m, rho = 0.8)), nsim = 120, seed = 1)
est <- qpm_estimate(m, obs, priors(rho = beta(0.5, 0.2)),
iter = 300, chains = 1, seed = 2, verbose = FALSE)
vcov(est)
confint(est)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.