Learn R Programming

metafor (version 1.9-8)

hatvalues.rma.mv: Hat values for 'rma.mv' Objects

Description

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

Usage

"hatvalues"(model, type="diagonal", ...)

Arguments

model
an object of class "rma.mv".
type
character string indicating whether to return only the diagonal of the hat matrix ("diagonal") or the entire hat matrix ("matrix").
...
other arguments.

Value

Either a vector with the diagonal elements of the hat matrix or the entire hat matrix.

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/.

Viechtbauer, W., & Cheung, M. W.-L. (2010). Outlier and influence diagnostics for meta-analysis. Research Synthesis Methods, 1, 112--125.