You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying out some examples (following some pandas examples form a notebook by Wes):
In python I don't expect an assignment to print anything, unless it's a warning.
Also, I would expect a test to return a numerical result.
>>> c = res.test_causality('m1', 'realgdp')
Granger causality f-test
=============================================================
Test statistic Critical Value p-value df
-------------------------------------------------------------
1.110648 3.011286 0.330 (2, 579)
=============================================================
H_0: ['realgdp'] do not Granger-cause m1
Conclusion: fail to reject H_0 at 5.00% significance level
>>> res.test_whiteness()
FAIL: Some autocorrelations exceed 0.1414 bound. See plot
>>> w = res.test_whiteness()
FAIL: Some autocorrelations exceed 0.1414 bound. See plot
verbose=False should in general be the default, or never printing at all.
best would be to replace results dictionary with a Bunch, so dictionary access is still available, and it doesn't break backwards compatibility. and use str == summary
otherwise just add summary to the result dict, so users still can print even if verbose=False
Activity
wesm commentedon Jan 11, 2012
These tests should return little
XTestResultclassesjosef-pkt commentedon Jan 11, 2012
Since this will be related: current test result class (for f_test, t_test) looks "ugly"
wesm commentedon Jan 11, 2012
Yeah, those should all print pretty tables when repr'd in IPython
jseabold commentedon May 5, 2013
Should we set verbose = False for these by default? The ability to print doesn't bother me really, but maybe it shouldn't happen automatically.
josef-pkt commentedon May 5, 2013
verbose=False should in general be the default, or never printing at all.
best would be to replace results dictionary with a Bunch, so dictionary access is still available, and it doesn't break backwards compatibility. and use str == summary
otherwise just add summary to the result dict, so users still can print even if verbose=False
jseabold commentedon May 5, 2013
Just doing VAR right now. I'll set verbose=False. I'll leave best/enhancements for when we have a general solution for all of these.
REF: Verbose -> False. Closes statsmodels#136.
REF: Verbose -> False. Closes statsmodels#136.