Josef Perktold
Josef Perktold
I wrote the algorithm for this a while ago https://github.com/statsmodels/statsmodels/pull/3674 I stopped because I couldn't decide on an appropriate api for this in statsmodels. A networkx version is included in...
Yes, I think that's what I remembered. I don't really know the details, but there are also other use cases where column order is relevant. One is in handling multicollinearity,...
(found by chance) I think the only reasonable solution besides raising an exception would be to treat it as missing value. (statsmodels `predict` would return nan in that case) Multiple...
@thequackdaddy Thanks that shows the answer to the side question ``` vars(factor.state['transforms']['_patsy_stobj0__cr__']) {'_all_knots': array([ 2.4 , 13.72, 20.56, 28.08, 39.28, 57.6 ]), '_constraints': array([[ 0.05757967, 0.28051497, 0.201252 , 0.18132192, 0.22525439,...
Just to mention that I have seen the same exception a few times. My guess was that there are a few nulps differences in the floating point computations. AFAIR it...
In statsmodels most regularization and constraints will be optionally on only some terms, e.g. in GAM we only penalize the splines. So, from this it would be easier to directly...
My guess is that for statsmodels it would be helpful to have a keyword in dmatrices to turn off categorical "treatment" on the left hand side of `~`. We would...
If there is not explicit `missing='drop'` when creating the model, then statsmodels doesn't check at all for nans. The nan handling is all patsy in this case, and if there...
Is there a replicable example or test case for this?
Yes, I understand mostly our problems with statsmodels 805, however, I think in this issue, patsy 36, the missing data handling of statsmodels is not involved at all. So this...