dplot.uvmeta: Plot the prior and posterior distribution of a meta-analysis...

Description Usage Arguments Value Author(s) Examples

View source: R/uvmeta.r

Description

Function to generate plots for the prior and posterior distribution of a Bayesian meta-analysis.

Usage

1
2
## S3 method for class 'uvmeta'
dplot(x, par, distr_type, plot_type = "dens", ...)

Arguments

x

An object of class "uvmeta"

par

Character string to specify for which parameter a plot should be generated. Options are "mu" (mean of the random effects model) and "tau" (standard deviation of the random effects model).

distr_type

Character string to specify whether the prior distribution ("prior") or posterior distribution ("posterior") should be displayed.

plot_type

Character string to specify whether a density plot ("dens") or histogram ("hist") should be displayed.

...

Additional arguments which are currently not used

Value

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
## Not run: 
data(Roberts)

fit <- with(Roberts, uvmeta(r=SDM, r.se=SE, method="BAYES"))

dplot(fit)
dplot(fit, distr_type = "posterior")
dplot(fit, par = "tau", distr_type = "prior")
dplot(fit, plot_type = "hist")

## End(Not run) 

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