Repository navigation
ENH: Ordinal model rebased2 - #7035
Conversation
|
Hello @josef-pkt! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-10-01 19:33:19 UTC |
|
This pull request introduces 1 alert when merging dcff941 into 4328705 - view on LGTM.com new alerts:
|
|
This pull request introduces 2 alerts when merging 0241fd5 into 4328705 - view on LGTM.com new alerts:
|
|
that worked, only failures are with lint check. The advantage is that I keep the information now inside |
| if exog is None: | ||
| exog = self.exog | ||
| if offset is None: | ||
| offset = self.offset |
There was a problem hiding this comment.
this is incorrect if exog is not None but offset is None. that should raise error about shape mismatch of exog and self.offset (in line 279 below)
see #4595 and referenced commit that fixed this for count models
no unit test coverage for case when those are None.
|
This pull request introduces 2 alerts when merging c1664d9 into 4328705 - view on LGTM.com new alerts:
|
|
all green, I have all the minimum parts that I wanted.
still ambiguous: how can we ascertain that we have no constant when using formulas? i.e. get correct patsy behavior I'm still not sure which parameterization of constant versus thresholds would be better. Green argues that if the parameterization includes a constant, then the model reduces to standard Logit or Probit in the binary case.
unit test for binary case are missing. |
| np.exp(th_params[1:]))).cumsum() | ||
| thresh = np.concatenate(([-np.inf], thresh, [np.inf])) | ||
| xb = exog.dot(params[:-(self.k_levels - 1)])[:, None] | ||
| low = thresh[:-1] - xb |
There was a problem hiding this comment.
BUG: missing offset
and it should delegate to _linpred
also option for what to return, e.g. linear, cdf, ...
|
Now with null loglike and results wrapper. todo: review docstrings, update notebook undecided: resid, fittedvalues, endog_dummies maybe as non-cached properties in general: do we add something like |
|
default optimizer is "nm", should be "bfgs" which converges much faster |
|
I need to merge this before I get distracted to much by other things and extensions. I have prototype functions for plots #6435 (comment) MNLogit and OrderedModel can share some postestimation functions. |
|
some diagnostic plots for countmodels are in semi-private |
|
This pull request introduces 1 alert when merging 76bdf47 into 0376f69 - view on LGTM.com new alerts:
|
|
case |
|
comparison to OrdinalGEE, see #7068 |
76bdf47 to
0e4578a
Compare
|
Merging to get it out of the way. Might need another round of cleaning/docs |
|
@bashtage The notebook update |
continuation of #7021 without adding
frameasModel.__init__kwdwithout last commit of #7021, and amended second to last commit to remove changes to
base.Model