leave1out.rma.uni
repeatedly fits the specified model, leaving out one observation/study at a time.## S3 method for class 'rma.uni':
leave1out(x, digits=x$digits, transf=FALSE, targs, \dots)
"rma.uni"
.transf=exp
). Defaults to FALSE
, which means that no transformation is used.transf
."list.rma"
. The object is a list containing the following components:NA
if transf
is used to transform the coefficients."list.rma"
object is formated and printed with print.list.rma
.x
must be a model without moderators (i.e., either a fixed- or a random-effects model).leave1out
, influence.rma.uni
### load BCG vaccine data
data(dat.bcg)
### calculate log relative risks and corresponding sampling variances
dat <- escalc(measure="RR", ai=tpos, bi=tneg, ci=cpos, di=cneg, data=dat.bcg)
### random-effects model
res <- rma(yi, vi, data=dat, method="REML")
leave1out(res)
leave1out(res, transf=exp)
Run the code above in your browser using DataLab