446
Example 29
The placeholder ‘TODO: Your code goes here needs to be replaced with lines for
evaluating the estimands called
“direct”, “indirect” and “difference”.
We start by writing Visual Basic code for computing the direct effect. In the
following figure, we have already typed part of a Visual Basic statement:
estimand(“direct”) .value =.