Skip to main content

Crate gamlss_diagnostics

Crate gamlss_diagnostics 

Source
Expand description

Post-fit diagnostics utilities for Rust-native GAMLSS models.

This crate is the intended home for diagnostics that are important for GAMLSS parity but should not be part of the core gamlss_core::Family contract.

Current utilities include:

  • PIT/CDF residuals;
  • ordered multivariate Rosenblatt residuals;
  • CRPS summaries;
  • reusable diagnostics views for prediction rows.

Planned utilities include:

  • randomized quantile residuals;
  • worm plot data;
  • centile curve data;
  • fitted parameter extraction helpers;
  • distribution-level prediction helpers.

The public surface intentionally grows through small extension APIs. Distribution-specific capabilities should be expressed through extension traits such as gamlss_core::HasCdf and gamlss_core::HasQuantile, while this crate provides post-fit utilities built on top of compiled model predictions.

let parameters = [0.0, 0.0];
let pit = model.pit_values(&parameters)?;
let residuals = model.quantile_residuals(&parameters)?;

Modules§

prelude
Common diagnostics imports.

Structs§

PredictionDiagnosticsView
Validated diagnostics view over prediction rows and observations.

Traits§

CdfDiagnosticsExt
CDF-based diagnostics for fitted GAMLSS models.
CrpsDiagnosticsExt
CRPS-based diagnostics for fitted GAMLSS models.
MarginalCdfDiagnosticsExt
Explicit component-wise marginal PIT diagnostics for multivariate families.
PredictionDiagnosticsExt
Diagnostics extension for a validated core PredictionView.
PredictionRosenblattDiagnosticsExt
Ordered multivariate PIT diagnostics for a validated core PredictionView.
RosenblattDiagnosticsExt
Ordered multivariate PIT diagnostics for fitted GAMLSS models.