score_test_zi#
- superglm.score_test_zi(
- model: SuperGLM,
- X,
- y,
- sample_weight=None,
- offset=None,
Van den Broek (1995) score test for zero-inflation.
Tests H0: no zero-inflation vs H1: zero-inflation, assuming a Poisson baseline model.
- Parameters:
- modelSuperGLM
A fitted Poisson model.
- Xpandas or eager Polars DataFrame
Design matrix.
- yarray-like
Observed response values.
- sample_weightarray-like or None
Observation weights. Currently unsupported.
- offsetarray-like or None
Optional offset.
- Returns:
- ScoreTestZIResult