Stats Functions¶
- birdman.stats.hotelling_ttest(inference_object: InferenceData, coord: dict, parameter: str = 'beta_var') Tuple[float64, float64] ¶
Test if covariate-draws centered around zero.
Uses Hotelling’s T-squared test to determine whether a given covariate coefficient is centered around zero (null hypothesis: centered around 0).
- Parameters
inference_object (az.InferenceData) – Inference object with posterior draws
coord (dict) – Coordinates to test
parameter (str, optional) – Name of parameter to test, defaults to ‘beta_var’
- Returns
\(t^2\) & p-value
- Return type
Tuple(float, float)