py-why / dowhy

DoWhy is a Python library for causal inference that supports explicit modeling and testing of causal assumptions. DoWhy is based on a unified language for causal inference, combining causal graphical models and potential outcomes frameworks.
https://www.pywhy.org/dowhy
MIT License
7.13k stars 935 forks source link

how to show summary stats (R squared, p value, F stat) from causal estimate #1229

Closed dododobetter closed 3 months ago

dododobetter commented 4 months ago

Ask your question After we use linear regression to produce a causal model, currently the output only shows the coefficient, how do we see the other summary stats (i.e. p-value, R squared, F stat, etc.)?

amit-sharma commented 3 months ago

You can access the statsmodel estimator object from a CausalEstimate object.

sm_est = estimate.estimator.model
sm_est.summary()

and then use summary() method to get the stats.

github-actions[bot] commented 3 months ago

This issue is stale because it has been open for 14 days with no activity.

github-actions[bot] commented 3 months ago

This issue was closed because it has been inactive for 7 days since being marked as stale.