Last chance! 50% off unlimited learning
Sale ends in
"rma.uni"
. Model fit statistics for the two models are provided. A likelihood ratio test comparing the two models is also performed.## S3 method for class 'rma.uni':
anova(object, object2, digits=object$digits, \dots)
"rma.uni"
."rma.uni"
."anova.rma.uni"
. The object is a list containing the following components:NA
for fixed-effects models or if the amount of heterogeneity in the reduced model is equal to zero.print.anova.rma.uni
function.rma.uni
, print.anova.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, append=TRUE)
### random-effects model
res2 <- rma(yi, vi, data=dat, method="ML")
### mixed-effects model with two moderators (absolute latitude and publication year)
res1 <- rma(yi, vi, mods=cbind(ablat, year), data=dat, method="ML")
anova(res1, res2)
Run the code above in your browser using DataLab