statsmodels/statsmodels — pull request #2158 by kshedden (2014-12-26 05:33:24+00:00)
Title: Refactor GEE margins, improve test coverage

This refactor does a few things, prompted by #2156:

1. Removes instance methods for mean_deriv and mean_deriv_exog in favor of methods that are overridden for the GEE nominal model.

2. Simplified the derivative calculations for the nominal model so that the scipy sparse matrix library is not needed.

3. Add GEEMargins to the api

4. Add tests against Stata for marginal effects

5. Add a test of the 2-class nominal model against logistic GLM

6. Change the handling of the Poisson scale parameter to agree with GLM (fix scale=1)