We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, pywhy I am having issue with implementing 'do' operator.
Error: AttributeError: 'int' object has no attribute 'copy'
Code that is producing error
import dowhy.datasets dataset = dowhy.datasets.lalonde_dataset() dataset=dataset.replace({True:1,False:0}) dataset treatment_col='treat' outcome_col='re78' from dowhy import CausalModel model=CausalModel( data = dataset, treatment=treatment_col, outcome=outcome_col, common_causes='nodegr+black+hisp+age+educ+married'.split('+')) model identified_estimand = model.identify_effect(proceed_when_unidentifiable=True) print(identified_estimand) # Estimate with confidence intervals and p-values estimate = model.estimate_effect( identified_estimand, method_name="backdoor.linear_regression", test_significance=True ) estimate.value estimate.get_confidence_intervals() estimate.estimator.do(x=1,data_df=dataset)
Version information:
Thank you
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, pywhy I am having issue with implementing 'do' operator.
Error:
AttributeError: 'int' object has no attribute 'copy'
Code that is producing error
Version information:
Thank you
The text was updated successfully, but these errors were encountered: