Last chance! 50% off unlimited learning
Sale ends in
dat.pritz1997
numeric
study number
authors character
study authors
xi numeric
number of patients that improved with hyperdynamic therapy
ni numeric
total number of patients treated
}### load data
data(dat.pritz1997)
### computation of "weighted average" in Zhou et al. (1999), Table IV
dat <- escalc(measure="PR", xi=xi, ni=ni, data=dat.pritz1997, add=0)
theta.hat <- sum(dat$ni * dat$yi) / sum(dat$ni)
se.theta.hat <- sqrt(sum(dat$ni^2 * dat$vi) / sum(dat$ni)^2)
ci.lb <- theta.hat - 1.96*se.theta.hat
ci.ub <- theta.hat + 1.96*se.theta.hat
round(c(estimate = theta.hat, se = se.theta.hat, ci.lb = ci.lb, ci.ub = ci.ub), 4)
### random-effects model with raw proportions
dat <- escalc(measure="PR", xi=xi, ni=ni, data=dat.pritz1997)
res <- rma(yi, vi, method="REML", data=dat)
predict(res)
### random-effects model with logit transformed proportions
dat <- escalc(measure="PLO", xi=xi, ni=ni, data=dat.pritz1997)
res <- rma(yi, vi, method="REML", data=dat)
predict(res, transf=transf.ilogit)
Run the code above in your browser using DataLab