Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error in matching by resetting index after sampling + test matching #47

Merged
merged 2 commits into from
Oct 19, 2024

Conversation

kirilklein
Copy link
Owner

Fix bootstrap with matching and add a new test case for it.

Enhancements to bootstrap effects computation:

  • CausalEstimate/core/effect_computation.py: Modified the compute_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 method test_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))

@kirilklein kirilklein linked an issue Oct 19, 2024 that may be closed by this pull request
@kirilklein kirilklein merged commit 887c4f5 into main Oct 19, 2024
3 checks passed
@kirilklein kirilklein deleted the 43-non-unique-pids-in-matching-with-bootstrap branch October 19, 2024 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Non unique pids in matching with bootstrap.
1 participant