statsmodels.genmod.generalized_linear_model.PredictionResults.t_test¶
method
-
PredictionResults.
t_test
(value=0, alternative='two-sided')[source]¶ z- or t-test for hypothesis that mean is equal to value
- Parameters
- valuearray_like
value under the null hypothesis
- alternativestring
‘two-sided’, ‘larger’, ‘smaller’
- Returns
- statndarray
test statistic
- pvaluendarray
p-value of the hypothesis test, the distribution is given by the attribute of the instance, specified in __init__. Default if not specified is the normal distribution.