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
bse is not defined (using default covariance), my mistake: bse is inherited
t_test requires df_resid which is not defined, use_t is also newer than GEE
add get_margeff to Results class, has only smoke test
raise exceptions for misspelled covariance_types (not done for argument in fit)
inherited attributes that are not available, needs overwriting llf see comment. (*)
(*) currently wrong inheritance, GEEResults is not a "LikelihoodModelResults", we still need a new baseclass (also for GMM, ...), llf based results are not available
naming convention
with new areas like robust covariances across models, we need to decide on a consistent naming scheme
cov_type, covariance_type, ... covariance_robustrobust_covariance, ... postfix qualifier see comment 1 in #1264
>>> md2cf.llf
Traceback (most recent call last):
File "<pyshell#75>", line 1, in <module>
md2cf.llf
File "e:\josef\eclipsegworkspace\statsmodels-git\statsmodels-all-new2_py27\statsmodels\statsmodels\tools\decorators.py", line 95, in __get__
_cachedval = self.fget(obj)
File "e:\josef\eclipsegworkspace\statsmodels-git\statsmodels-all-new2_py27\statsmodels\statsmodels\base\model.py", line 1168, in llf
self.scale = scale
AttributeError: 'GEE' object has no attribute 'loglike'
editllf is the only one that raises an exception
md2cf is family gaussian result instance
>>> len([getattr(md2cf, i) for i in dir(md2cf) if not i=='llf'])
50
For at least the simple covariance structures, MDependent, AR it should be possible to use operations with full arrays and sparse matrices instead of the group loop. The possible performance advantage is if we can build most of the sparse structure at the initialize stage and have simpler vectorized operations (scipy.sparse C++) instead of looping over groups.
We need more helper functions and experience to take advantage of sparse arrays, and check when it's really faster.
Activity
josef-pkt commentedon Dec 19, 2013
Note: some of the above, wald_test, updated t_test, covariance_default, are not yet available in #1256 because it's newer in master
josef-pkt commentedon Dec 20, 2013
differences in degrees of freedom, small sample correction
GEE Gaussian Independence versus OLS with cluster robust covariances
add options or ignore? (Stata also has different correction factor for cluster robust after OLS and after Poisson)
josef-pkt commentedon Dec 20, 2013
test failure on Debian #1260
josef-pkt commentedon Dec 23, 2013
inherited attributes that are not available
edit
llfis the only one that raises an exceptionmd2cfis family gaussian result instancejosef-pkt commentedon Dec 23, 2013
general review across results
GEEResults has
k_constantnot in docstringnobsnot available but is in docstring copied from GLM, I removed it from GEEResults docstringjosef-pkt commentedon Apr 8, 2014
playing with sparse matrices for covariance structures
http://nbviewer.ipython.org/gist/josef-pkt/b66c9405a1593be1cbc9
For at least the simple covariance structures, MDependent, AR it should be possible to use operations with full arrays and sparse matrices instead of the group loop. The possible performance advantage is if we can build most of the sparse structure at the
initializestage and have simpler vectorized operations (scipy.sparse C++) instead of looping over groups.We need more helper functions and experience to take advantage of sparse arrays, and check when it's really faster.
josef-pkt commentedon Aug 23, 2014
several of the issues have been fixed in #1924
see that PR for a summary and some items that are still open