summary.qpm_estimate: Summarise an estimate

View source: R/generics.R

summary.qpm_estimateR Documentation

Summarise an estimate

Description

Returns the posterior summary as a data frame — prior, mode, mean, standard deviation, credible interval, R-hat and effective sample size — so it can be used programmatically rather than only read.

Usage

## S3 method for class 'qpm_estimate'
summary(object, level = 0.9, ...)

Arguments

object

A qpm_estimate.

level

Credible level for the interval.

...

Unused.

Value

A data frame, one row per estimated parameter.

Examples


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)
summary(est)


qpmR documentation built on Sept. 29, 2026, 5:10 p.m.