Learn R Programming

gkwreg (version 1.0.7)

.validate_and_prepare_gkwreg_diagnostics: Validate inputs and prepare diagnostic data for gkwreg plots

Description

Validate inputs and prepare diagnostic data for gkwreg plots

Usage

.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
)

Value

A list containing diagnostic data and model information

Arguments

x

A fitted model object of class "gkwreg"

which

Integer vector specifying which plots to produce

caption

Character vector of plot captions

type

Character string specifying residual type

family

Character string specifying distribution family

nsim

Number of simulations for envelope calculation

level

Confidence level for envelope

use_ggplot

Logical; whether to use ggplot2

arrange_plots

Logical; whether to arrange multiple plots

sample_size

Integer or NULL; sample size for large datasets

theme_fn

ggplot2 theme function