| verify_round | R Documentation |
Re-runs a saved forecast round from its own contents — model, calibration, data vintage, conditions and judgment — and checks that the published numbers come back. This is the audit an institution needs and that a folder of scripts cannot provide: a round that no longer reproduces is a finding, not a mystery.
verify_round(round, store = "rounds", tol = 1e-06)
round |
A |
store |
Round store used when |
tol |
Absolute tolerance on the forecast paths. |
When the round is loaded from a store, the human-readable CSV sidecars are checked against the object too, so a hand-edited audit trail is detected.
An object of class qpm_verification: $ok, the largest
deviation, the worst variables, sidecar checks, and the qpmR
versions involved.
m <- qpm_template("bkl")
obs <- simulate(qpm_solve(m), nsim = 40, seed = 1, burn = 20)
obs$period <- next_quarters("2016-Q1", 40)
r <- qpm_round("demo", m, obs[, c("period", "pi", "i", "q")], horizon = 8)
verify_round(r)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.