gelmanplot.valmeta: Gelman-Rubin-Brooks plot

Description Usage Arguments Value Author(s) Examples

View source: R/valmeta.r

Description

This plot shows the evolution of Gelman and Rubin's shrink factor as the number of iterations increases. The code is adapted from the R package coda.

Usage

1
2
## S3 method for class 'valmeta'
gelmanplot(x, confidence = 0.95, ...)

Arguments

x

An mcmc object

confidence

The coverage probability of the confidence interval for the potential scale reduction factor

...

Additional arguments which are currently not used

Value

A ggplot object.

An object of class ggplot

Author(s)

Thomas Debray <thomas.debray@gmail.com>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
data(EuroSCORE)

# Meta-analysis of the concordance statistic
fit <- valmeta(cstat=c.index, cstat.se=se.c.index, cstat.cilb=c.index.95CIl,
               cstat.ciub=c.index.95CIu, N=n, O=n.events, 
               data=EuroSCORE, method="BAYES", slab=Study)
gelmanplot(fit)

## End(Not run) 

            

metamisc documentation built on Oct. 13, 2021, 3 p.m.