Validate inputs and prepare diagnostic data for gkwreg plots
.validate_and_prepare_gkwreg_diagnostics(
x,
which,
caption,
type = c("quantile", "pearson", "deviance"),
family = NULL,
nsim = 100,
level = 0.9,
use_ggplot = FALSE,
arrange_plots = FALSE,
sample_size = NULL,
theme_fn = ggplot2::theme_minimal
)
A list containing diagnostic data and model information
A fitted model object of class "gkwreg"
Integer vector specifying which plots to produce
Character vector of plot captions
Character string specifying residual type
Character string specifying distribution family
Number of simulations for envelope calculation
Confidence level for envelope
Logical; whether to use ggplot2
Logical; whether to arrange multiple plots
Integer or NULL; sample size for large datasets
ggplot2 theme function