powered by
Conduct a t-test or z-test for coefficients of a model.
coef_test(x, par1, par2, distribution = "pt")
Named vector.
A model.
Numeric or character. Name or position of the first parameter.
Numeric or character. Name or position of the second parameter.
Character. Which distribution to use. Currently, can be one of c("pt", "pnorm"), for a t-test or z-test, respectively. Defaults to "pt".
c("pt", "pnorm")
dat <- escalc(measure="RR", ai=tpos, bi=tneg, ci=cpos, di=cneg, data=dat.bcg) res <- rma(yi, vi, mods = ~alloc-1, data=dat, method="REML") coef_test(res, 1, 2)
Run the code above in your browser using DataLab