Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot.PPH

Plot of prior, likelihood, and posterior distributions


Description

Plots the prior, likelihood, and posterior distribution from a single study.

Usage

## S3 method for class 'PPH'
plot(x, range = NULL, n = 200, leg.loc = "topleft",
  xlab = "Effect size", ylab = "", ...)

Arguments

x

A PPH object created by the pph() function.

range

A numeric vector of length two that sets the range of the x-axis. Values are passed to xlim. Sensible default values are used when range = NULL.

n

An integer that specifies the number of x-values to use when plotting the distributions.

leg.loc

Location of the legend; default is top left. See the legend() help pages for all the options. If leg.loc = NULL the legend is not plotted.

xlab, ylab

Text for the x and y axes labels.

...

Other options passed to plot().

Details

Plots the prior, likelihood (data), and posterior distribution calculated from the pph() function for a single study.

Value

Plot of distributions.

See Also

Examples

x <- pph(beta = 5.005, se.beta = 2.05)
plot(x)

BayesCombo

Bayesian Evidence Combination

v1.0
GPL-3
Authors
Bruno Contrino, Stanley E. Lazic
Initial release
2017-02-06

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.