There is still something strange
I had the failure with poisson in the interpreter, but the tests had
passed before.
Now it still works with
>>> logit_res3.__class__
<class 'statsmodels.discrete.discrete_model.BinaryResultsWrapper'>
>>> logit_res3._results.__class__
<class 'statsmodels.discrete.discrete_model.L1BinaryResults'>
>>> logit_res3.cov_params()
GPA TUCE PSI const
GPA NaN NaN NaN NaN
TUCE NaN 0.012548 NaN -0.284208
PSI NaN NaN NaN NaN
const NaN -0.284208 NaN 6.584961
------
I do have
class BinaryResultsWrapper(lm.RegressionResultsWrapper):
pass
wrap.populate_wrapper(BinaryResultsWrapper, BinaryResults)
class L1BinaryResultsWrapper(lm.RegressionResultsWrapper):
pass
wrap.populate_wrapper(L1BinaryResultsWrapper, L1BinaryResults)
but fit_regularized still returns a BinaryResultsWrapper not yet the
L1BinaryResultsWrapper
magic, but for another day.
Josef