Learn R Programming

metafor (version 1.9-4)

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

Description

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

Usage

## S3 method for class 'rma.mv':
hatvalues(model, type="diagonal", \dots)

Arguments

model
an object of class "rma.mv".
type
character string indicating whether to only return the diagonal of the hat matrix ("diagonal") or the entire 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.