Last data update: 2014.03.03

R: Model Matrix for 'rma' Objects
model.matrix.rmaR Documentation

Model Matrix for 'rma' Objects

Description

The function extracts the model matrix for objects of class "rma".

Usage

## S3 method for class 'rma'
model.matrix(object, ...)

Arguments

object

an object of class "rma".

...

other arguments.

Value

The model matrix.

Author(s)

Wolfgang Viechtbauer wvb@metafor-project.org
package website: http://www.metafor-project.org/
author homepage: http://www.wvbauer.com/

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

fitted.rma

Examples

### load BCG vaccine data
data(dat.bcg)

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

Results