사용자 정의 결과 함수를 사용해 추정치 반박하기
A Simple Example on Creating a Custom Refutation Using User-Defined Outcome Functions
1. Insert Dependencies
from dowhy import CausalModel
import dowhy.datasets
import pandas as pd
import numpy as np
# Config dict to set the logging level
import logging.config
DEFAULT_LOGGING = {
'version': 1,
'disable_existing_loggers':False,
'loggers': {
'': {
'level': 'WARN',
},
}
}
logging.config.dictConfig(DEFAULT_LOGGING)2. Create the dataset
Variable Name
Data Type
Interpretation
Z0
W0
W1
V0
y
3. Creating the Causal Model

4. Identify the Estimand
5. Estimating the Effect
6. Refuting the Estimate
1) Using a Randomly Generated Outcome
2) Using a Function that Generates the Outcome from the Confounders
Last updated