Skip to content
Prev 1790 / 5636 Next

[R-meta] metafor package in R - Risk ratios using rma.mv()

Dear Wolfgang and All,

Thanks so much for your prior help.
We have calculated incidence and prevalence rates from a mixed-effects
model using the rma.mv command. We are attaching the results below.

*Variable*

*Cohorts (n)*

*Incidence Rate/100k*

*Lower 95% CI*

*Upper 95% CI*

*World Health Organization Region*

    Americas

225

324.5

166.7

482.2

    African

30

1906.4

1134.1

2678.7

    Eastern Mediterranean

24

249.1

32.3

466.0

    European

33

767.6

407.8

1127.3

    South-East Asia

48

1148.7

628.6

1668.9

    Western Pacific

30

560.0

-131.7

1251.7



*Cohorts (n)*

*Prevalence Rate*

*Lower 95% CI*

*Upper 95% CI*

*World Health Organization Region*

    Americas

33

1.7

0.9

2.5

    African

31

2.8

1.4

4.1

    Eastern Mediterranean

7

1.9

0.5

3.4

    European

21

1.9

0.8

3.0

    South-East Asian

10

2.4

-1.1

6.0

    Western Pacific

54

1.2

-0.1

2.4


Unfortunately we have some negative confidence intervals for some of our
incidence and prevalence estimates. We would like to not have any negative
confidence intervals and therefore would like to switch the models that we
are using.

Is there a way to keep our code (which we have put below for both incidence
and prevalence) and run a poisson model for incidence and a binary or beta
model for prevalence so that we no longer have a negative confidence
interval for some of our variables? We noticed that when we run the model
using log transformed incident and prevalence rates, the confidence
intervals are positive. We are also wondering what the difference is
between using PR/IR versus PLN/IRLN for fitting the model, and why the
latter would result in all positive confidence intervals.

Thank you again for all your help!

Best
Olivia and Leo


*Code for incidence rates: *
#data subsetted by WHO region

pd_ec <- escalc(measure = 'IR', xi = data_sub$inc_positive,ti =
data_sub$inc_person_years, append = TRUE,
            data = data_sub)

m0 <- rma.mv(yi, vi, method='REML', mods = formula,
                        random= ~ 1 | study_id/cohort_id,
                        tdist=TRUE,
                        data=pd_ec)

*Code for prevalence rates: *
#data subsetted by WHO region

pd_ec <- escalc(
            measure = 'PR', xi = data_sub$prev_positive,ni =
data_sub$prev_total_n, append = TRUE,
            data = data_sub)

 m0 <- rma.mv(yi, vi, method='REML', mods = formula,
                        random= ~ 1 | study_id/cohort_id,
                        tdist=TRUE,
                        data=pd_ec)

Thank you for any help you can provide!

Best
Leo and Olivia



Leonardo Martinez, PhD, MPH
Stanford University School of Medicine
Division of Infectious Diseases and Geographic Medicine
300 Pasteur Drive, Lane Building, Stanford, CA 94305
Phone: +1.202.769.8090
Email: leomarti at stanford.edu; chopotin at gmail.com
Website <https://profiles.stanford.edu/leonardo-martinez-pantoja>


On Wed, Sep 4, 2019 at 10:57 AM Viechtbauer, Wolfgang (SP) <
wolfgang.viechtbauer at maastrichtuniversity.nl> wrote:

            
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-meta-analysis/attachments/20191004/1c753ea8/attachment-0001.html>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1003_PR_IR.xlsx
Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Size: 14856 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-meta-analysis/attachments/20191004/1c753ea8/attachment-0001.xlsx>