Algorithm 2.
Estimation for the infinite-horizon setting
| Input: Observed data , the number of bootstrap samples , and the significance level . | |
| Output: Estimated individual mediation effect , for . | |
| 1: | Pool data across all stages, . |
| 2: | Estimate parameters using the pooled data. |
| 3: | Estimate and using the pooled data. |
| 4: | Compute to using (25). |
| 5: | Compute using (24). |
| 6: | for do |
| 7: | Sample trajectories from the observed data with replacement. |
| 8: | Repeat Lines 1 to 5 to compute using the bootstrap samples. |
| 9: | end for |
| 10: | Construct the CI for , where and are the empirical lower and upper quantiles of , respectively. |