You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
undecided:
what do we do about weights in GLM for margeff?
currently warns and ignores weights, i.e. implicitly weights=1, similarly for exposure
What should be the default in future?
We could add explicit var_weights=1, freq_weights=1, exposure=1.
Then, setting them to None by user could be used for default as in predict, i.e. use model.xxx attribute if exog=None.
The default would still be different from predict unless we change the default in a backwards incompatible way.
freq_weights will be needed to get average partial/marginal effect ("overall") for the freq weighted sample. (similar to weights in new get_prediction with average=True)
var_weights: I have no idea, They do not look relevant for prediction and partial effects. i.e. only needed for estimation.
exposure depends on desired mean, either exposure weighted average or average for standard exposure.
offset is different, it needs to be supported, currently raises if it has been used in estimation.
offset could be neglected if it is a standin for log(exposure)
i.e. we will not treat offset and log(exposure) symmetrically for margins
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #4751
see also #7341 mentions weights which are not supported here in GLM
adding margeff to GLM is largely copy-paste-adjust
unit tests compare GLM with discrete Logit, Probit and Poisson in
discrete/tests/test_sandwich_covthose comparisons do not include Negbin NB2
(could possibly be backported even though it's an enhancement)