W3cubDocs

/Statsmodels

statsmodels.regression.mixed_linear_model.MixedLMResults.t_test

MixedLMResults.t_test(r_matrix, scale=None, use_t=None) [source]

Compute a t-test for a each linear hypothesis of the form Rb = q

Parameters:
  • r_matrix (array-like) – If an array is given, a p x k 2d array or length k 1d array specifying the linear restrictions. It is assumed that the linear combination is equal to zero.
  • scale (float, optional) – An optional scale to use. Default is the scale specified by the model fit.
  • use_t (bool, optional) – If use_t is None, then the default of the model is used. If use_t is True, then the p-values are based on the t distribution. If use_t is False, then the p-values are based on the normal distribution.
Returns:

res – The results for the test are attributes of this results instance. The available results have the same elements as the parameter table in summary().

Return type:

ContrastResults instance

© 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.regression.mixed_linear_model.MixedLMResults.t_test.html