term_test#

SuperLSS.term_test(
parameter: str,
term: str,
*,
covariance: Literal['fixed', 'corrected'] = 'fixed',
X_train: object | EagerFrame | None = None,
**kwargs: Any,
) → TermTest#

Return the Wood (2013) test that one term of one parameter is flat.

The statistic is a Wald form on the rank-truncated pseudo-inverse of the term’s Bayesian covariance, with the rank tied to the term’s effective degrees of freedom; because the scale is itself modelled the reference is a chi-squared and not an F. Like term_inference() it evaluates on the training frame, so a restored model needs X_train=.