Learn R Programming

metafor (version 0.5-0)

fitted.rma: Fitted Values for rma Objects

Description

The function calculates the fitted values for objects of class "rma".

Usage

## S3 method for class 'rma':
fitted(object, ...)

Arguments

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

Value

  • A vector with the fitted values.

See Also

predict.rma.uni, blup.rma.uni

Examples

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

### meta-analysis of the log risk rates 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")
fitted(res)

Run the code above in your browser using DataLab