scikits.statsmodels.glm.GLMResults.t

GLMResults.t(column=None)

Return the t-statistic for a given parameter estimate.

Parameters :

column : array-like

The columns for which you would like the t-value. Note that this uses Python’s indexing conventions.

See also

Use

Examples

>>> import scikits.statsmodels as sm
>>> data = sm.datasets.longley.Load()
>>> data.exog = sm.add_constant(data.exog)
>>> results = sm.OLS(data.endog, data.exog).fit()
>>> results.t()
array([ 0.17737603, -1.06951632, -4.13642736, -4.82198531, -0.22605114,
4.01588981, -3.91080292])
>>> results.t([1,2,4])
array([-1.06951632, -4.13642736, -0.22605114])
>>> import numpy as np
>>> results.t(np.array([1,2,4]))
array([-1.06951632, -4.13642736, -0.22605114])

Previous topic

scikits.statsmodels.glm.GLMResults.f_test

Next topic

scikits.statsmodels.glm.GLMResults.t_test

This Page