Extract the Model Coefficients and Coefficient Table from 'rma' and 'summary.rma' Objects
The coef function extracts the estimated model coefficients from objects of class "rma". For objects of class "summary.rma", the model coefficients, corresponding standard errors, test statistics, p-values, and confidence interval bounds are extracted.
## S3 method for class 'rma' coef(object, ...) ## S3 method for class 'summary.rma' coef(object, ...)
object |
an object of class |
... |
other arguments. |
Either a vector with the estimated model coefficient(s) or a data frame with the following elements:
estimate |
estimated model coefficient(s). |
se |
corresponding standard error(s). |
zval |
corresponding test statistic(s). |
pval |
corresponding p-value(s). |
ci.lb |
corresponding lower bound of the confidence interval(s). |
ci.ub |
corresponding upper bound of the confidence interval(s). |
Wolfgang Viechtbauer wvb@metafor-project.org http://www.metafor-project.org/
Viechtbauer, W. (2010). Conducting meta-analyses in R with the metafor package. Journal of Statistical Software, 36(3), 1–48. https://www.jstatsoft.org/v036/i03.
### meta-analysis of the log risk ratios using a mixed-effects model
### with two moderators (absolute latitude and publication year)
res <- rma(measure="RR", ai=tpos, bi=tneg, ci=cpos, di=cneg,
mods = ~ ablat + year, data=dat.bcg)
coef(res)
coef(summary(res))Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.