Skip to contents

Computes residuals, fitted values, and model diagnostics for GAM-based epidemic curve models fitted with compare_curves(). Produces diagnostic plots without invoking base graphics.

Usage

diagnose_curves(x, grid_n = 200)

Arguments

x

An object of class "r4pde_compare_curves".

grid_n

Number of points used for the diagnostic smooth curve.

Value

An object of class "r4pde_curve_diagnostics" containing:

  • diagnostic data,

  • k-index checks,

  • concurvity estimates,

  • ggplot-based diagnostic panels.