Skip to content

TypeError in discrete_choice #4

Open
@cdeil

Description

@cdeil
mfx = affair_mod.margeff()
print pandas.Series(mfx, index=affair_mod.params.index[1:])
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-15-3f999b08521d> in <module>()
----> 1 mfx = affair_mod.margeff()
      2 print pandas.Series(mfx, index=affair_mod.params.index[1:])

/Users/deil/Library/Python/2.7/lib/python/site-packages/statsmodels-0.5.0-py2.7-macosx-10.7-x86_64.egg/statsmodels/discrete/discrete_model.pyc in margeff(self, at, method, atexog, dummy, count)
   1814                                                 self.model._derivative_exog,
   1815                                                 dummy_ind, count_ind,
-> 1816                                                 method)
   1817         # don't care about at constant
   1818         self.margeff_cov = margeff_cov[ind][:, ind]

TypeError: margeff_cov_with_se() takes exactly 10 arguments (9 given)

/Users/deil/Library/Python/2.7/lib/python/site-packages/statsmodels-0.5.0-py2.7-macosx-10.7-x86_64.egg/statsmodels/discrete/discrete_model.py:1746: FutureWarning: This method is deprecated and will be removed in 0.6.0. Use get_margeff instead
  " Use get_margeff instead", FutureWarning)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions