CompareJ.run()

statsmodels.stats.diagnostic.CompareJ.run

CompareJ.run(results_x, results_z, attach=True) [source]

run J-test for non-nested models

Parameters:

results_x : Result instance

result instance of first model

results_z : Result instance

result instance of second model

attach : bool

If true, then the intermediate results are attached to the instance.

Returns:

tstat : float

t statistic for the test that including the fitted values of the first model in the second model has no effect.

pvalue : float

two-sided pvalue for the t statistic

Notes

Tests of non-nested hypothesis might not provide unambiguous answers. The test should be performed in both directions and it is possible that both or neither test rejects. see ??? for more information.

References

???

© 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.stats.diagnostic.CompareJ.run.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部