Fix error in matching by resetting index after sampling + test matching #47
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.
Fix bootstrap with matching and add a new test case for it.
Enhancements to bootstrap effects computation:
CausalEstimate/core/effect_computation.py
: Modified thecompute_bootstrap_effects
function to reset the index of the resulting DataFrame to ensure a clean index after computation. ([CausalEstimate/core/effect_computation.pyL103-R103](https://github.com/kirilklein/CausalEstimate/pull/47/files#diff-15249310d39f8dc6703255186092e0d5a1d216b8331f9e8de6e848962df68543L103-R103)
)New test case for bootstrap effects:
tests/test_interface/test_interface.py
: Added a new test methodtest_matching_bootstrap
to verify the functionality of the bootstrap effects computation. This test checks the computation of effects using the matching method with bootstrapping enabled. ([tests/test_interface/test_interface.pyR336-R348](https://github.com/kirilklein/CausalEstimate/pull/47/files#diff-99e513228acdf5287a905be981b539fbc5ffb541b5c8e51736542cbbde9be9cfR336-R348)
)