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
{{ message }}
Repository navigation
BUG: margins dummy incorrect if prepended constant - #3696
I didn't go through the full code path, checking if unit tests are fine on all machines.
does not include yet a possibly similar problem for _get_count_index
subclassing CheckMargEff in unit tests adds tests for count_index which fails for prepend=True case
using the same removal of the index adjustment fixes issues on my testing python
unit tests in CheckMargEff look pretty comprehensive, so I think it will be good to merge.
GLM doesn't have margins yet
GEE has margins but imports _get_dummy_index, _get_count_index from discrete, and delegates the core computation also to discrete margins.
unit test coverage for GEEMargins are only a few basic examples, I think the rest relies on correct computation in discrete margins.
I'm not sure what's going on with GEEMargins.
Trying to run the same kind of tests as for Logit results in errors and failures. It looks like dummy and count margins are not supported in GEEMargins.
e.g. GEE is missing model._derivative_predict which is used for both count and dummy effects.
(If this is so, then this is a separate issue and doesn't prevent merging this PR, and I'll move the added GEE unit test to a new PR)
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.
should close #3695
I didn't go through the full code path, checking if unit tests are fine on all machines.
does not include yet a possibly similar problem for
_get_count_indexsubclassing CheckMargEff in unit tests adds tests for count_index which fails for prepend=True case
using the same removal of the index adjustment fixes issues on my testing python
unit tests in CheckMargEff look pretty comprehensive, so I think it will be good to merge.