20
Causal mediation analysis
Causal Inference in R
Preface
Asking Causal Questions
1
From casual to causal
2
The whole game: mosquito nets and malaria
3
Estimating counterfactuals
4
Target trials and standard methods
5
Expressing causal questions as DAGs
6
Causal inference is not (just) a statistical problem
The Design Phase
7
Preparing data to answer causal questions
8
Building propensity score models
9
Using the propensity score
10
Evaluating your propensity score model
Estimating Causal Effects
11
Causal estimands
12
Fitting the outcome model
13
Continuous exposures
14
Categorical exposures
15
G-computation
16
Interaction
17
Missingness
18
Causal inference across time
19
Causal survival analysis
20
Causal mediation analysis
21
Sensitivity analysis
22
Machine learning and causal inference
23
Instrumental variables and friends
24
Evidence
References
Table of contents
20.1
Estimating direct effects
20.2
Estimating indirect effects
20.3
Allowing for interactions
Edit this page
Report an issue
20
Causal mediation analysis
20.1
Estimating direct effects
rnorm
(
5
)
[1] -0.1844 0.2373 -1.4093 0.0875 -0.6315
20.2
Estimating indirect effects
20.3
Allowing for interactions
19
Causal survival analysis
21
Sensitivity analysis