metafor (version 2.4-0)

fitted.rma: Fitted Values for 'rma' Objects

Description

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

Usage

# S3 method for rma
fitted(object, …)

Arguments

object

an object of class "rma".

other arguments.

Value

A vector with the fitted values.

References

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.

See Also

predict.rma, blup.rma.uni

Examples

Run this code
# NOT RUN {
### 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)
fitted(res)
# }

Run the code above in your browser using DataCamp Workspace