Skip to content
New issue

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

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

Already on GitHub? # to your account

Add an epsilon parameter to RegressionDiscontinuity classes #224

Merged
merged 6 commits into from
Jul 24, 2023

Conversation

drbenvincent
Copy link
Collaborator

Epsilon is the (small) distance above and below the threshold that we use to calculate the discontinuity. Previously this was hard-wired to be 0.001, but now we have a kwarg epsilon that can be used to override the default (still 0.001).

Added a short description in the docstring.

Added use of the kwarg into the integration tests.

Closes #220.

@drbenvincent drbenvincent added the enhancement New feature or request label Jul 22, 2023
@codecov
Copy link

codecov bot commented Jul 22, 2023

Codecov Report

Merging #224 (694caab) into main (21944bd) will increase coverage by 0.05%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #224      +/-   ##
==========================================
+ Coverage   70.34%   70.40%   +0.05%     
==========================================
  Files          19       19              
  Lines        1005     1007       +2     
==========================================
+ Hits          707      709       +2     
  Misses        298      298              
Impacted Files Coverage Δ
causalpy/tests/test_integration_pymc_examples.py 100.00% <ø> (ø)
causalpy/tests/test_integration_skl_examples.py 100.00% <ø> (ø)
causalpy/pymc_experiments.py 59.16% <100.00%> (+0.13%) ⬆️
causalpy/skl_experiments.py 65.00% <100.00%> (+0.22%) ⬆️

@drbenvincent drbenvincent requested a review from juanitorduz July 22, 2023 09:51
causalpy/skl_experiments.py Outdated Show resolved Hide resolved
@drbenvincent drbenvincent requested a review from juanitorduz July 24, 2023 11:42
@drbenvincent drbenvincent merged commit 90cf94b into main Jul 24, 2023
@drbenvincent drbenvincent deleted the rd-updates branch July 24, 2023 11:44
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression Discontinuity: add an epsilon parameter
2 participants