statsmodels.genmod.generalized_linear_model.PredictionResultsMean.t_test#

PredictionResultsMean.t_test(value=0, alternative='two-sided')#

z- or t-test for hypothesis that mean is equal to value

Parameters:
valuearray_like

Value under the null hypothesis.

alternativestr

‘two-sided’, ‘larger’, ‘smaller’.

Returns:
statndarray

The test statistic.

pvaluendarray

The 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.