Comments (2)
Hi @cschiri The function plot_causal_effect is a very simple one. It does not create any new data, rather uses the data already provided.
To generate a pandas dataframe, here's a solution:
- The scatter plot is generated using df["v"] and df["y"]. So you can use these two columns directly.
- The causal variation line is generated using the estimate object. It is simply a line with y-intercept= estimate.params["intercept"] and slope=estimate.value. Using this knowledge, you can generate a set of data points on the line if you wish, or directly use the slope and intercept for plotting in another way.
Hope this helps.
from dowhy.
Thank you it clarifies things!
from dowhy.
Related Issues (20)
- interpretation of refutation test results and decision making HOT 4
- returning array([0.]) for p value of test_significance HOT 4
- attribute anomalies fails check on pandas 2.0.2 HOT 4
- graph learning and R depedency on CDT HOT 9
- Get error in refutation process ValueError: No group keys passed! HOT 5
- Move case studies to a location where those are freely accessible
- Treat each covariate as treatment one at a time in double ML HOT 2
- [MAINT] Refactor any dependencies on independence tests to use optional dependency `pywhy-stats`
- backdoor.propensity_score_weighting - pass options to LogisticRegression HOT 1
- estimate_effect() got an unexpected keyword argument 'num_quantiles_to_discretize_cont_cols'
- ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all(). HOT 1
- Support newer versions of Cython HOT 1
- Unexpected results for CATE methods when predicting on new data HOT 1
- Remove graph-learner API from DoWhy and point to causal-learn / dodiscover instead
- CausalModel's `view_model()` fails when dot is not installed HOT 1
- Clear documentation on identification methods HOT 2
- Backdoor path HOT 4
- Linear dataset functionality and parameters HOT 1
- Simple constraints for the SCM HOT 1
- How can I get more log messages from dowhy? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dowhy.