This is a supplementary document for the file "Exposure-Adjusted Adverse Event Summary (Updated)". We first provide an explanation for the calculation of the exposure adjusted event rate (EAER) of adverse events, and then briefly summarize the programming steps of this calculation.
$$ \begin{aligned} EAER_j (\text{EAER for } Trt_j) &= \frac{\text{total number of events for } Trt_j}{\text{total person-days for } Trt_j/(\text{exp factor})} \ &= \frac{\text{total number of events for } Trt_j \times \text{exp factor}}{\text{total person-days for } Trt_j} \end{aligned} $$
The exposure factor (exp factor) will be adjusted depending on the adjustment unit defined by users. For instance, when the adjustment unit is '100 person-month', EAER will be computed as follows:
$$ \begin{aligned} EAER_j (\text{100 person-months}) &= \frac{\text{total number of events for } Trt_j \times \text{exp factor} (=100\times30.4367)}{\text{total person-days for } Trt_j} \ &= \frac{\text{total number of events for } Trt_j \times 3043.67}{\text{total person-days for } Trt_j} \end{aligned} $$
As an example, below are the EAER definitions for three types of AEs using three treatment groups (PBO, Low Dose, High Dose).
$$ EAER_{PBO} (\text{100 person-months}) =\frac{\text{total number of AEs for PBO} \times 3043.67}{\text{total person-days for PBO}} $$
$$ EAER_{LD} (\text{100 person-months}) =\frac{\text{total number of AEs for Low Dose} \times 3043.67}{\text{total person-days for Low Dose}} $$
$$ EAER_{HD} (\text{100 person-months}) =\frac{\text{total number of AEs for High Dose} \times 3043.67}{\text{total person-days for High Dose}} $$
$$ EAER_{PBO} (\text{100 person-months}) =\frac{\text{total number of SAEs for PBO} \times 3043.67}{\text{total person-days for PBO}} $$
$$ EAER_{LD} (\text{100 person-months}) =\frac{\text{total number of SAEs for Low Dose} \times 3043.67}{\text{total person-days for Low Dose}} $$
$$ EAER_{HD} (\text{100 person-months}) =\frac{\text{total number of SAEs for High Dose} \times 3043.67}{\text{total person-days for High Dose}} $$
$$ EAER_{PBO} (\text{100 person-months}) =\frac{\text{total number of Drug-Related AEs for PBO} \times 3043.67}{\text{total person-days for PBO}} $$
$$ EAER_{LD} (\text{100 person-months}) =\frac{\text{total number of Drug-Related AEs for Low Dose} \times 3043.67}{\text{total person-days for Low Dose}} $$
$$ EAER_{HD} (\text{100 person-months}) =\frac{\text{total number of Drug-Related AEs for High Dose} \times 3043.67}{\text{total person-days for High Dose}} $$
adae
is created.meta
is created.prepare_ae_summary()
and extend_ae_summary_eaer()
.
This extend function has the following arguments:
outdata
, duration_var
, and adj_unit
.
The output will be a list:library(metalite.ae)
meta <- meta_ae_example() x <- meta |> prepare_ae_summary( population = "apat", observation = "wk12", parameter = "any;rel;ser", ) |> extend_ae_summary_eaer( duration_var = "TRTDUR", adj_unit = "month" ) x
Run x$eaer
to get the EAER:
x$eaer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.