statsmodels.genmod.generalized_linear_model.PredictionResults.t_test

PredictionResults.t_test(value=0, alternative='two-sided') [source]

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

Parameters:
  • value (array_like) – value under the null hypothesis
  • alternative (string) – ‘two-sided’, ‘larger’, ‘smaller’
Returns:
  • stat (ndarray) – test statistic
  • pvalue (ndarray) – 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.

© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3-clause BSD License.
http://www.statsmodels.org/stable/generated/statsmodels.genmod.generalized_linear_model.PredictionResults.t_test.html