Skip to content

Commit

Permalink
rm IST data
Browse files Browse the repository at this point in the history
  • Loading branch information
rachaelvp committed May 3, 2022
1 parent 20c11d3 commit 5540cd1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 70 deletions.
3 changes: 1 addition & 2 deletions 06-sl3.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -638,8 +638,7 @@ learning problem, the data, and any metadata (e.g., observational-level
weights, IDs, offset).

Also, if we had missing outcomes, we would need to set `drop_missing_outcome =
TRUE` when we create the task. In the next analysis, with the [IST stroke trial
data](#ist), we do have a missing outcome. In the following chapter, we need to
TRUE` when we create the task. In the following chapter, we need to
estimate this missingness mechanism; which is the conditional probably that
the outcome is observed, given the history (i.e., variables that were measured
before the missingness). Estimating the missingness mechanism requires learning
Expand Down
44 changes: 0 additions & 44 deletions 07-tmle3.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -510,50 +510,6 @@ metalearner <- make_learner(
`data.table` optimizations), e.g., (`cpp2 <- data.table::copy(cpp)`), then
use the `cpp2` data going forward.

### Estimation of Strata-Specific ATEs with `tmle3` {#tmle3-ex2}

For this exercise, we will work with a random sample of 5,000 patients who
participated in the International Stroke Trial (IST). This data is described in
the [Chapter 3.2 of the `tlverse` handbook](#ist). We included the data below
and a summarized description that is relevant for this exercise.

The outcome, $Y$, indicates recurrent ischemic stroke within 14 days after
randomization (`DRSISC`); the treatment of interest, $A$, is the randomized
aspirin vs. no aspirin treatment allocation (`RXASP` in `ist`); and the
adjustment set, $W$, consists simply of other variables measured at baseline. In
this data, the outcome is occasionally missing, but there is no need to create a
variable indicating this missingness (such as $\Delta$) for analyses in the
`tlverse`, since the missingness is automatically detected when `NA` are present
in the outcome. Covariates with missing values (`RATRIAL`, `RASP3` and `RHEP24`)
have already been imputed. Additional covariates were created
(`MISSING_RATRIAL_RASP3` and `MISSING_RHEP24`), which indicate whether or not
the covariate was imputed. The missingness was identical for `RATRIAL` and
`RASP3`, which is why only one covariate indicating imputation for these two
covariates was created.

1. Estimate the average effect of randomized aspirin treatment (`RXASP` = 1) on
recurrent ischemic stroke. Even though the missingness mechanism on $Y$,
$\Delta$, does not need to be specified in the node list, it does still need
to be accounted for in the TMLE. In other words, for this estimation problem,
$\Delta$ is a relevant factor of the likelihood. Thus, when defining the
list of `sl3` learners for each likelihood factor, be sure to include a list
of learners for estimation of $\Delta$, say `sl_Delta`, and specify this in
the learner list, like so
`learner_list <- list(A = sl_A, delta_Y = sl_Delta, Y = sl_Y)`.
2. Recall that this RCT was conducted internationally. Suppose there is concern
that the dose of aspirin may have varied across geographical regions, and an
average across all geographical regions may not be warranted. Calculate the
strata specific ATEs according to geographical region (`REGION`).

```{r tmle3-ex2}
ist_data <- fread(
paste0(
"https://raw.githubusercontent.com/tlverse/deming2019-workshop/",
"master/data/ist_sample.csv"
)
)
```

## Summary

`tmle3` is a general purpose framework for generating TML estimates. The easiest
Expand Down
24 changes: 0 additions & 24 deletions book.bib
Original file line number Diff line number Diff line change
Expand Up @@ -630,30 +630,6 @@ @book{wickham2014advanced
publisher={Chapman and Hall/CRC}
}

@article{sandercock1997international,
title={The International Stroke Trial (IST): a randomized trial of aspirin,
subcutaneous heparin, both, or neither among 19,435 patients with acute
ischemic stroke},
author={Sandercock, P and Collins, R and Counsell, C and Farrell, B and Peto,
R and Slattery, J and Warlow, C},
journal={Lancet},
volume={349},
number={9065},
pages={1569--1581},
year={1997}
}

@article{sandercock2011international,
title={The international stroke trial database},
author={Sandercock, Peter AG and Niewada, Maciej and Cz{\l}onkowska, Anna},
journal={Trials},
volume={12},
number={1},
pages={101},
year={2011},
publisher={BioMed Central}
}

@book{kalbfleisch2011statistical,
title={The statistical analysis of failure time data},
author={Kalbfleisch, John D and Prentice, Ross L},
Expand Down

0 comments on commit 5540cd1

Please sign in to comment.