Produces a 2x2 or 1x3 panel of diagnostic plots:
QQ plot of PIT residuals vs Uniform (with KS p-value)
Residuals vs fitted (with lowess smoother)
Dispersion histogram (observed variance vs simulated)
Spatial correlogram via Moran's I (if coords provided)
Usage
check_model(object, ...)
# Default S3 method
check_model(object, coords = NULL, nsim = 250L, seed = 123L, ...)Arguments
- object
A fitted model with
simulate(),fitted(),residuals()- ...
Passed to methods.
- coords
Optional N x 2 coordinate matrix for spatial panel
- nsim
Number of simulations (default 250)
- seed
Random seed (default 123)