Skip to content
rgommers edited this page Jun 2, 2012 · 5 revisions

Scratch Notes

loading json

>>> import os
>>> import json
>>> import statsmodels.stats.tests
>>> cur_dir = statsmodels.stats.tests.__path__[0]
>>> fp = open(os.path.join(cur_dir, "results", "influence_lsdiag_R.json"))
>>> lsdiag = json.load(fp)
>>> fp.close()
>>> lsdiag.keys()
[u'cooks', u'std.res', u'dfits', u'std.err', u'std.dev', u'correlation', u'cov.unscaled',
 u'stud.res', u'hat', u'cov.scaled']

used in statsmodels\stats\tests\test_diagnostic.py

Clone this wiki locally