-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the filtering of data based on common support in propensity scores. The most important changes include importing utility functions, refactoring the `filter_common_support` function, and adding new utility functions for better code modularity. ### Addition of new utility functions: * [`CausalEstimate/filter/propensity.py`](diffhunk://#diff-73e7b9da6dfdab6a8a1711b59df52d4bffac8ad5d5a5db07f7ddc00b69acfa89L23-R50): Added `get_common_support_range` function to calculate the common support range for propensity scores, improving the readability and maintainability of the code. * [`CausalEstimate/utils/utils.py`](diffhunk://#diff-47ddc6f8fde028e7680ca9bc39bbe60f9539d833069d20a5d4ce9fac195f2396R18-R23): Added `filter_column` function to filter a DataFrame based on a specified column range, enhancing the modularity of the code.
- Loading branch information
1 parent
510a668
commit 6c0b65b
Showing
3 changed files
with
36 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Empty file.