Validate bulk+tail glue for MixGPD predictive distribution
check_glue_validity.RdThis diagnostic checks whether the implied predictive distribution behaves like a valid distribution (monotone CDF in \([0,1]\), nonnegative density, and sensible behavior around the threshold when a GPD tail is enabled).
Usage
check_glue_validity(
fit,
x = NULL,
grid = NULL,
n_draws = 50L,
tol = 1e-08,
check_continuity = TRUE,
eps = 1e-06
)Arguments
- fit
A
mixgpd_fitobject.- x
Optional design matrix for conditional models. If
NULL, uses trainingX.- grid
Numeric evaluation grid. If
NULL, defaults to a grid based on trainingy.- n_draws
Number of posterior draws to check (sampled without replacement when possible).
- tol
Numerical tolerance for monotonicity/range checks.
- check_continuity
Logical; if
TRUEand GPD is enabled, checks continuity at the threshold.- eps
Small offset used for threshold continuity check.