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

CausalTestResult test_value #196

Open
jmafoster1 opened this issue Jun 7, 2023 · 2 comments
Open

CausalTestResult test_value #196

jmafoster1 opened this issue Jun 7, 2023 · 2 comments
Labels
Development help wanted Extra attention is needed

Comments

@jmafoster1
Copy link
Contributor

We have a field in CausalTestResult called test_value. Please can someone tell me what it is? Have we always had it? Looking at how it's used, it seems like redundancy for Estimator.treatment_value. If this is the case, can it be removed, or do we use it for something special?

@jmafoster1
Copy link
Contributor Author

Along similar lines, I really don't think we should be passing Estimator objects into CausalTestResult objects, especially since we're only accessing particular properties. I think it would be much better to put those values directly in fields, or if pylint kicks off, we should have a data class or something.

@christopher-wild
Copy link
Contributor

christopher-wild commented Jun 21, 2023

We have a field in CausalTestResult called test_value. Please can someone tell me what it is? Have we always had it? Looking at how it's used, it seems like redundancy for Estimator.treatment_value. If this is the case, can it be removed, or do we use it for something special?

The TestValue class was added in PR #119 which separated CausalTestResult from causal_test_outcome.py as well as other refactoring. It looks like it adds the capability to handle different value types, i.e. ate , risk-ratio, etc.

Is the test_value attribute the same thing as the Estimator.treatment_value? It comes from methods like estimator.estimate_unit_ate() and estimator.estimate_risk_ratio().

Not passing in the estimator objects and simplying it does seem like a logical thing to do

@f-allian f-allian added help wanted Extra attention is needed Development labels Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants