Learn R Programming

metafor (version 1.4-0)

coef.rma: Model Coefficients for rma Objects

Description

The function extracts the estimated model coefficients, corresponding standard errors, test statistics, p-values, and confidence interval bounds from objects of class "rma".

Usage

## S3 method for class 'rma':
coef(object, \dots)

Arguments

object
an object of class "rma".
...
other arguments.

Value

  • A data frame with the following elements:
  • estimateestimated model coefficient(s).
  • secorresponding standard error(s).
  • zvalcorresponding test statistic(s).
  • pvalcorresponding p-value(s).
  • ci.lbcorresponding lower bound of the confidence interval(s).
  • ci.ubcorresponding upper bound of the confidence interval(s).
  • When the model was fitted with the Knapp and Hartung (2003) method (i.e., knha=TRUE in the rma.uni function), then zval is called tval in the data frame that is returned by the function.

References

Viechtbauer, W. (2010). Conducting meta-analyses in R with the metafor package. Journal of Statistical Software, 36(3), 1--48. http://www.jstatsoft.org/v36/i03/.

See Also

rma.uni, rma.mh, rma.peto

Examples

Run this code
### load BCG vaccine data
data(dat.bcg)

### meta-analysis of the log relative risks using a mixed-effects model
### with two moderators (absolute latitude and publication year)
res <- rma(ai=tpos, bi=tneg, ci=cpos, di=cneg, mods=cbind(ablat, year),
           data=dat.bcg, measure="RR", method="REML")
coef(res)

Run the code above in your browser using DataLab