Repository navigation
Betareg rebased3 Beta regression - #7543
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 2021-07-16 17:52:56 UTC |
|
If there are no serious problems here, then I can continue with the previous |
| if observed: | ||
| jgg += (mu * ymu_star + yt - mut) * q * h**3 # **3 ? | ||
|
|
||
| return np.column_stack((sf1, sf2)), (-jbb, -jbg, -jgg) |
There was a problem hiding this comment.
has return_hessian
but seems to return it always
| ("different from expected", name, list(a), list(b)) | ||
|
|
||
| def assert_close(a, b, eps): | ||
| assert np.allclose(a, b, rtol=0.01, atol=eps), (list(a), list(b)) |
There was a problem hiding this comment.
should be obsolete
use assert_allclose directly
| return var_endog | ||
|
|
||
|
|
||
| def nloglikeobs(self, params): |
There was a problem hiding this comment.
I will deprecate nloglikeobs
just use loglikeobs
|
This pull request introduces 2 alerts when merging 193d040 into 195be20 - view on LGTM.com new alerts:
|
|
This pull request introduces 2 alerts when merging d741310 into 195be20 - view on LGTM.com new alerts:
|
d741310 to
4e64f29
Compare
|
This pull request introduces 1 alert when merging 4e64f29 into 195be20 - view on LGTM.com new alerts:
|
|
all green, including style check get_distribution But if I use model.predict, then we don't get the transform/formula handling from inherited Results.predict. Also inherited Results.predict cannot handle formula for second exog, i.e. exog_precision_formula in current api. |
|
problem in predict with auxiliary data arrays currently it assumes either both exog are specified or neither. GenericZeroInflated does not check for a default exog_infl, so user will have to specify all or nothing. #4757 #4952 I think we need a flag, model attribute, to indicate whether the second exog_xxx was set by the default. |
|
changing get_distribution to go through predict two separate get_distribution with currently no code sharing,
|
|
This pull request introduces 1 alert when merging 40212c8 into 1745692 - view on LGTM.com new alerts:
|
|
This pull request introduces 1 alert when merging b407be6 into 592133c - view on LGTM.com new alerts:
|
|
results name BetaRegressionResults doesn't match the pattern, need to rename to ??? for in For beta, I'm going with BetaModel, BetaResults |
b407be6 to
31de807
Compare
|
This pull request introduces 2 alerts when merging 31de807 into fcc8b50 - view on LGTM.com new alerts:
|
31de807 to
d343f64
Compare
|
all green, merging |
|
This pull request introduces 2 alerts when merging d343f64 into 1e1c54d - view on LGTM.com new alerts:
|
rebased version of #7282 Betareg_rebased2
This PR includes changes to the GenericLikelihoodModel classes
earlier PRs superseded by this PR
closes #7282 , closes #4238 , closes #4238 #2030
API still needs improvements
notebook with basic example from unit tests in gist https://gist.github.com/josef-pkt/4d0fd829c8fbc1c4237d989ba3dbb088