Learn R Programming

metaplus (version 1.0-5)

outlierProbs: Calculate outlier probabilities for each study.

Description

For the normal mixture random effect calculates the probability that each study is an outlier based on the posterior probability of it being an outlier.

Usage

# S3 method for metaplus
outlierProbs(object)

Value

outlier.prob

Posterior probability that each study is an outlier

slab

Labels corresponding to each study

Arguments

object

A metaplus object with a mixture (robust) random effects distribution.

Author

Ken Beath <ken@kjbeath.id.au>

Details

The outlier probabilities are obtained as the posterior probabilities of each study being an outlier based on the fitted mixture model.

Examples

Run this code
# \donttest{
data(mag)
mag3 <- metaplus(yi, sei, plotci = TRUE, slab = study, random = "mixture", cores = 1, data = mag)
mag3.outlierProbs <- outlierProbs(mag3)
plot(mag3.outlierProbs)
# }

Run the code above in your browser using DataLab