Skip to content

Commit

Permalink
fixed a typo in variable name and added clarity (#298)
Browse files Browse the repository at this point in the history
- fixed a typo in the `instruments` variable
- added the items inside parentheses to help connect explanations to the code for more clarity
  • Loading branch information
toppare authored Jul 20, 2021
1 parent 56c0b34 commit 787cbf5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@
"\n",
"The first step is to encode our domain knowledge into a causal model, often represented as a graph. The final outcome of a causal inference analysis depends largely on the input assumptions, so this step is quite important. To estimate the causal effect, most common problems involve specifying two types of variables: \n",
"\n",
"1. **Confounders**: These are variables that cause both the action and the outcome. As a result, any observed correlation between the action and the outcome may simply be due to the confounder variables, and not due to any causal relationship from the action to the outcome. \n",
"1. **Confounders (common_causes)**: These are variables that cause both the action and the outcome. As a result, any observed correlation between the action and the outcome may simply be due to the confounder variables, and not due to any causal relationship from the action to the outcome. \n",
"\n",
"2. **Instrumental Variables**: These are special variables that cause the action, but do not directly affect the outcome. In addition, they are not affected by any variable that affects the outcome. Instrumental variables can help reduce bias, if used in the correct way. "
"2. **Instrumental Variables (instruments)**: These are special variables that cause the action, but do not directly affect the outcome. In addition, they are not affected by any variable that affects the outcome. Instrumental variables can help reduce bias, if used in the correct way. "
]
},
{
Expand All @@ -151,7 +151,7 @@
" treatment=data[\"treatment_name\"],\n",
" outcome=data[\"outcome_name\"],\n",
" common_causes=data[\"common_causes_names\"],\n",
" intrumental_variables=data[\"instrument_names\"])"
" instruments=data[\"instrument_names\"])"
]
},
{
Expand Down

0 comments on commit 787cbf5

Please sign in to comment.