Repository navigation
ENH: review of GLM families - #3543
lorentzenchr wants to merge 5 commits into
Conversation
| """ | ||
|
|
||
| return (endog - mu) / np.sqrt(self.variance(mu)) / scale | ||
| return (endog - mu) / scale**(0.5) |
There was a problem hiding this comment.
for consistency across models we might want to keep self.variance(mu) in here
| return scale * np.sum((endog * np.log(mu/(1 - mu) + 1e-200) + | ||
| np.log(1 - mu)) * freq_weights) | ||
| return np.sum((endog * np.log(mu/(1 - mu)) + | ||
| np.log(1 - mu)) * freq_weights) |
There was a problem hiding this comment.
there is no clipping to protect overflow or zero division without 1e-200 ?
|
Just a quick preliminary skimming. |
|
cross-link #2698 binomial is not count, this got me confused when trying to review this. |
Tries to settle most of the issues in #3377.