Skip to content
Back to formatted view

Raw Message

Message-ID: <e20a9ae4f9d44e21b1488b4b919fe473@UM-MAIL3214.unimaas.nl>
Date: 2020-01-29T07:41:14Z
From: Wolfgang Viechtbauer
Subject: [R-meta] double arcsine transformation
In-Reply-To: <062yaCBoz5888Set.1580260551@web02.cms.usa.net>

Hi James,

You are passing 'transf.ipft.hm' to the second argument of predict.rma():

> args(predict.rma)
function (object, newmods, intercept, tau2.levels, gamma2.levels, 
    addx = FALSE, level, digits, transf, targs, vcov = FALSE, ...)

So, you are setting 'newsmods = transf.ipft.hm' which doesn't make sense. It should be:

pes <- predict(pes.dat, transf=transf.ipft.hm, targ=list(ni=dat$total))

Best,
Wolfgang

-----Original Message-----
From: R-sig-meta-analysis [mailto:r-sig-meta-analysis-bounces at r-project.org] On Behalf Of james meyer
Sent: Wednesday, 29 January, 2020 2:16
To: r-sig-meta-analysis at r-project.org
Subject: [R-meta] double arcsine transformation

I am performing a univariate meta-analysis on sensitivity and specificity.   I
fit the model in metafor and when trying to transform the double-arcsine I get
the following error:

 pes<-predict(pes.dat,transf.ipft.hm,targ=list(ni=dat$total))
Error in predict.rma(pes.dat, transf.ipft.hm, targ = list(ni = dat$total)) : 
  Cannot specify new moderator values for models without moderators.

Is this fixable or do you need more information.

James C Meyer DVM DACVIM