No ANOVA table, but a Wald table that calculates wald (F- or chisquare) test for terms that include more than one column
This corresponds to a type 3 ANOVA, without ssr because that won't work with robust covariance matrices.
`skip_single` to ignore single column terms that are already covered by the summary table
useful if we want to know if one variable that is involved in an interaction has no effect at all
It's just a convenient loop over `wald_test` that creates the constraint matrices from the formula term information.
will go to toplevel LikelihoodModel, and will work with all models that have formula information
>>> print(anova_wald(res_ols))
chi2 PR(>chi2) df
Intercept 279.754525 8.49355252808e-63 1
C(Duration, Sum) 5.367071 0.0205204120227 1
C(Weight, Sum) 24.864890 3.98710515153e-06 2
C(Duration, Sum):C(Weight, Sum) 0.352005 0.838615921347 2
>>>
>>>
>>> print(anova_wald(res_ols, skip_single=True))
chi2 PR(>chi2) df
C(Weight, Sum) 24.864890 3.98710515153e-06 2
C(Duration, Sum):C(Weight, Sum) 0.352005 0.838615921347 2
>>>
>>>
>>> aw = anova_wald(res_glm, skip_single=False,
... combine_terms=['Duration', 'Weight'])
>>> print(aw)
chi2 PR(>chi2) df
Intercept 279.754525 8.49355252808e-63 1
C(Duration, Sum) 5.367071 0.0205204120227 1
C(Weight, Sum) 24.864890 3.98710515153e-06 2
C(Duration, Sum):C(Weight, Sum) 0.352005 0.838615921347 2
Duration 6.019038 0.110687659046 3
Weight 24.874835 5.33106659939e-05 4
>>>
>>>
>>> #for reference
...
>>>
>>> print(res_ols.summary())
OLS Regression Results
==============================================================================
Dep. Variable: np.log(Days + 1) R-squared: 0.387
Model: OLS Adj. R-squared: 0.327
Method: Least Squares F-statistic: 6.449
Date: Sun, 07 Dec 2014 Prob (F-statistic): 0.000103
Time: 00:21:04 Log-Likelihood: -60.212
No. Observations: 57 AIC: 132.4
Df Residuals: 51 BIC: 144.7
Df Model: 5
Covariance Type: nonrobust
=============================================================================================================
coef std err z P>|z| [95.0% Conf. Int.]
-------------------------------------------------------------------------------------------------------------
Intercept 1.6443 0.098 16.726 0.000 1.452 1.837
C(Duration, Sum)[S.1] 0.2277 0.098 2.317 0.021 0.035 0.420
C(Weight, Sum)[S.1] -0.5844 0.144 -4.070 0.000 -0.866 -0.303
C(Weight, Sum)[S.2] -0.0429 0.137 -0.314 0.754 -0.311 0.225
C(Duration, Sum)[S.1]:C(Weight, Sum)[S.1] -0.0848 0.144 -0.591 0.555 -0.366 0.197
C(Duration, Sum)[S.1]:C(Weight, Sum)[S.2] 0.0359 0.137 0.263 0.793 -0.232 0.304
==============================================================================
Omnibus: 6.457 Durbin-Watson: 1.873
Prob(Omnibus): 0.040 Jarque-Bera (JB): 2.876
Skew: -0.258 Prob(JB): 0.237
Kurtosis: 2.028 Cond. No. 1.92
==============================================================================
Warnings:
[1] Standard Errors assume that the covariance matrix of the errors is correctly specified.
>>>