knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

Background

Traditional 95% confidence intervals (CIs) in updatad meta-analyses do not usually result in the expected 95% coverage because earlier meta-analyses often fail to exclude the null. Thus, a likelihood ratio based method that is independent of type 1 error as proposed by Dormuth et al, 2016 could be used to obtain adjusted confidence intervals that are more intune with reality. These "intrinsic" confidence intervals (ICIs) are wider than the traditional confidence intervals.

It turns out that traditional 95% CIs are 1/7th as likely as their corresponding confidence intervals; this is contrary to the natural tendency of interpreting null hypothesis as being 5% or 1/20th as likely as the MLE. In order to correct this disconnect, the likelihood ratio meta analytic (LRMA) method, independent of p-values or sample size, is used.

The method is implemented for estimating rate ratios or odds ratios in epidemiological studies. For example, suppose we consider the natural logarithm of rate ratio ($\log(\text{RR})$) then the likelihood ratio (LR) comparing the RR under the null hypothesis ($\mu_0 = \text{RR}{\text{H0}} = 1.00$) vs some alternative hypothesis ($\mu_1 = \text{RR}{\text{HA}}$) is given by

$$ \text{LR} = \exp\left(\frac{(\log RR_{MLE}-\log RR_{HA})^2}{2\sigma_{HA}^2}-\frac{(\log RR_{MLE}-\log RR_{H0})^2}{2\sigma_{H0}^2}+\log\left(\frac{\sigma_{HA}}{\sigma_{H0}}\right)\right) $$ where $\log()$ denotes the natural logarithm scale and $\sigma^2$ corresponds to the variance of RR under the null and alternative hypothesis. See Dormuth et al., 2016 for more detailed explanation of the method.

R Package: 'metalr'

R software package to estimate traditional 95% CIs and 95% intrinsic CIs of effect estimates (rate ratio and odds ratio) in epidemiological studies. The package includes the following functions

  1. The ici.rr() Function: estimates 95% intrinsic confidence interval for rate ratio.

  2. The ici.or() Function: estimates 95% intrinsic confidence interval for odds ratio.

  3. The metalr_or() Function: estimates total effect estimates (MLE of combined odds ratio), the 95% CI and 95% intrinsic CI in fixed effect and random effect meta-analysis. Individual study effect estimates and their corresponding CIs are also estimated.

  4. The metalr_rr() Function: estimates total effect estimates (MLE of combined rate ratio), the 95% CI and 95% intrinsic CI in fixed effect and random effect meta-analysis. Individual level study effect estimates and their corresponding CIs are also estimated.

  5. The forest_metalr() Function: returns a forest plot of the likelihood ratio meta-analysis results. The plot compares the 95% tranditional CIs and 95% Intrinsic CIs the effect estimates in a meta-analysis.

Installation

The development version of the metalr Package can be installed on GitHub using:

if (!require("devtools"))install.packages("devtools")
devtools::install_github("laminjuwara/metalr")

Example 1: CAPRIE trial

We consider the randomized control trial (RCT) of clopidogrel vs Aspirin in patients at risk of ischaemic events designed to assess the relative efficacy of clopidogrel (75mg once daily) to that of aspirin (325mg once daily) in reducing the risk of ischemic stroke, MI or vascular death [1].

The study population includes a total of 9599 clopidogrel and 9586 aspirin patients were followed for 1 to 3 years (mean follow-up = 1.91 years), 939 primary outcome events in clopidogrel patients who were followed for a total of 17,636 person-years and 1021 events in aspirin patients followed for a total of 17,519 person-years. The data is compiled below.

# Clopidogrel vs Aspirin trial dataset
cases<-c(939,1021)
person_yrs<-c(17636,17519)
patients<-c(9599,9586)   

The ici.rr() Function

The ici.rr() function calculates rate ratios and corresponding 95% intrinsic confidence intervals in epidemiological studies. The functions provides both the traditional confidence interval and intrinsic confidence limits. This allows us to compare the two confidence limits. For example, using the dataset from caprie trial, we obtain

library(metalr)
ici.rr(cases = cases,patients = patients,person_yrs = person_yrs)

The MLE of the rate ratio is 0.914, the 95% confidence limit is (0.837,0.998) and the 95% intrinsic confidence limit is (0.819,1.020).

The metalr_rr() Function

The metalr_rr() estimates total meta-analytic rate ratios and corresponding rate ratio. It allows fixed effect or random effect meta-analysis and outputs the 95% traditional confidence limits, intrinsic confidence limits and MLE of the effect estimate. Further, it gives estimates a measure of heterogeneity between studies in random effect meta-analysis (i.e. $\tau^2$ and the $\text{I}^2$ statistics).

We use the toy data example provided along with the package (sample_metarr_data). That is

library(metalr)
data("sample_metarr_data")
head(sample_metarr_data)

In order to determine the total rate ratio effect in the above toy example, we have

metalr_rr(sample_metarr_data,refval=0,num_iter=3000,increm=0.001,method="random")

The same effect estimates are obtained for individual studies and a combined total random effect estimates is also obtained. For the estimated heterogeneity index $\tau^2 = 0.0824$, we estimate the MLE of the total effect as 0.744 with the corresponding intrinsic limits (0.450,1.230).

Example 2: statin potency and acute kidney injury

To assess the association of higher potency statins on the risk of acute kidney injury (aki) compared to lower potency statins, a meta-analysis including 9 studies is conducted by CNODES. The dataset is presented below.

library(metalr)
data("statindata")
statindata

We can used the functions ici.or() and metalr_or() in the metalr package to estimate 95% intrinsic confidence limits for odds ratio from individual studies and combined (or individual study) effect estimates from meta-analysis respectively. To demonstate applications of the functions, we have

The ici.or() Function

The ici.or() function calculates odds ratio and corresponding 95% intrinsic confidence intervals in observational studies. The functions provides both the traditional confidence interval and intrinsic confidence limits. For example, the estimates obtained from QC (study 6)is presented.

ici.or(idata = statindata[6,2:5])

The MLE of the odds ratio is 1.232, the 95% confidence limit is (1.099,1.380) and the 95% intrinsic confidence limit is (1.069,1.419).

The metalr_or() Function

The metalr_or() estimates total effects (odds ratio) from fixed or random effect meta-analysis as well as the corresponding intrinsic confidence limits. It also computes the 95% traditional confidence limits and the MLE of the effect estimate. Further, it gives estimates a measure of heterogeneity between studies in random effect meta-analysis ($\tau^2$ and $\text{I}^2$ statistics estimates).

Below, we use the 'statin and aki dataset' to compute total fixed effect meta-analysis estimates.

metalr_or(statindata[,2:5],refval=0,num_iter=3000,increm=0.001,method="fixed")

Similarly, total random effects could be estimated as shown with the metalr_or() function. We note that in both icc.or() and metalr_or() functions, the input dataframe is required to have 4 columns (not including the study name) as shown in the statin dataset above.

The forest_metalr() Function

The forest_metalr() function plots 95% CIs and ICIs for odds ratios or ratios from a likelihood ratio meta-analysis object. Thus, we can compare traditional 95% confidence limits of individuals studies and total/combined effect estimates to their corresponding 95% intrinsic confidence limits.

Below, we use the 'statin and aki dataset' to plot the confidence limits obtained from the meta_or() function above

# the metalr object
library(metalr)
metalr_obj<-metalr_or(idata=statindata[,2:5],refval=0,num_iter=3000,increm=0.001,method = "random")

# forest plot of the metalr object
forest_metalr(metalr_obj)

Reference

  1. Dormuth, Colin R., Kristian B. Filion, and Robert W. Platt. "Likelihood ratio meta-analysis: New motivation and approach for an old method." Contemporary clinical trials 47 (2016): 259-265.


LaminJuwara/metalr documentation built on May 29, 2019, 11:41 a.m.