可以用meta包metareg(formula, data, method.tau=data$method.tau)
给你看个例子——
使用meta包对其进行meta检验(异质性大,采用随机效应模型):
命令:meta1=metabin(case.e, n.e, case.une, n.une, data=data1,sm="OR", studlab=paste(Author, Year), comb.fixed=FALSE)
随后对其进行meta回归:
命令:metareg(~data1$Cancer+data1$Race+data1$size2, data=meta1, method="REML")