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
{{ message }}
Repository navigation
BUG: GEE subclasses NominalGEE don't work with pandas exog #1931
using pandas.DataFrame for endog and exog raises and exception in __init__setup_nominal
======================================================================
ERROR: statsmodels.genmod.tests.test_gee.TestGEEMultinomialCovType.test_wrapper
----------------------------------------------------------------------
Traceback (most recent call last):
File "c:\programs\python27\lib\site-packages\nose-1.0.0-py2.7.egg\nose\case.py", line 187, in runTest
self.test(*self.arg)
File "E:\Josef\eclipsegworkspace\statsmodels-git\statsmodels-all-new2_py27\statsmodels\statsmodels\genmod\tests\test_gee.py", line 968, in test_wrapper
@classmethod
File "E:\Josef\eclipsegworkspace\statsmodels-git\statsmodels-all-new2_py27\statsmodels\statsmodels\genmod\generalized_estimating_equations.py", line 1692, in __init__
exog, groups, time, offset)
File "E:\Josef\eclipsegworkspace\statsmodels-git\statsmodels-all-new2_py27\statsmodels\statsmodels\genmod\generalized_estimating_equations.py", line 1742, in setup_nominal
exog_out[jrow, :] = np.kron(u, exog_row)
ValueError: operands could not be broadcast together with shapes (4) (2)
I'm in the middle of adding the wrappers and this is a test failure, but it looks unrelated to the wrappers.
I haven't tested outside of my branch. PR #1916
Both, OrdinalGEE and NominalGEE, call setup_xxx before doing the super call. The data is preprocessed, but there is no asarray in there.
Correction OrdinalGEE has a set of `asarray in there and works without problems with pandas DataFrames
I don't know whether from_formula works, no test case, and I haven't tried an example yet.
changed the title [-]BUG: GEE subclasses OrdinalGEE, NominalGEE don't work with pandas exog [/-][+]BUG: GEE subclasses NominalGEE don't work with pandas exog [/+]on Aug 22, 2014
Activity
josef-pkt commentedon Aug 22, 2014
Ok, copying the asarray from OrdinalGEE to NominalGEE fixes it.
[-]BUG: GEE subclasses OrdinalGEE, NominalGEE don't work with pandas exog [/-][+]BUG: GEE subclasses NominalGEE don't work with pandas exog [/+]BUG: NominalGEE fix initialization for pandas, closes statsmodels#1931
BUG: NominalGEE fix initialization for pandas, closes statsmodels#1931
Merge commit 'v0.5.0-1269-g957a43e' into debian-experimental