| qpcstats | R Documentation |
Compute quantitative predictive quality metrics that summarize agreement
between observed and simulated data in a VPC. QPC statistics numerically encode
features typically assessed visually (coverage, deviation, trend, and sharpness),
and include a composite qpc_score (lower is better) suitable for automated
model comparison and optimization.
qpcstats(
o,
alpha = 0.05,
w = c(med_cov = 0.35, tail_cov = 0.2, mae = 0.15, drift = 0.1, sharp = 0.1, interval =
0.1),
sharp_ref = NULL,
interval_ref = NULL,
...
)
o |
A |
alpha |
Numeric. Miscoverage level for interval scoring (default |
w |
Named numeric vector of weights used to combine component penalties into
|
sharp_ref |
Numeric or |
interval_ref |
Numeric or |
... |
Additional arguments (reserved for future extensions). |
When should I set sharp_ref / interval_ref?
Single-model / single-VPC scoring (default): leave both as NULL.
This produces stable, bounded penalties without requiring any prior run for calibration.
Population scoring / optimization: provide references when comparing many
models (e.g., Darwin search) where you want the sharpness and interval-score penalties
to be on a consistent scale across models/runs. A common choice is to compute
sharp_ref and interval_ref from a representative run (e.g., median or 75th
percentile values across all evaluated models).
Returns tidyvpcobj with an additional qpc.stats
data.table containing QPC summary metrics and qpc_score.
vpcstats, binless, predcorrect
## Not run:
vpc <- observed(obs_data, y = DV, x = TIME) %>%
simulated(sim_data, y = DV) %>%
binless(optimize = TRUE) %>%
predcorrect(pred = PRED) %>%
vpcstats()
# Default: single-model scoring (no calibration required)
vpc <- qpcstats(vpc)
# Population scoring (e.g., Darwin run): anchor penalties for comparability
vpc <- qpcstats(
vpc,
sharp_ref = 0.15,
interval_ref = 2.5
)
vpc$qpc.stats
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.