Skip to content
Prev 1903 / 5636 Next

[R-meta] double arcsine transformation

Hi James,

You are passing 'transf.ipft.hm' to the second argument of 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