plot: Plotting 'ReplicationBF' objects

Description Usage Arguments Details Value References Examples

Description

This method can be used to visually represent a Replication Bayes Factor.

Usage

1
plot.ReplicationBF(x, ..., use.ggplot = TRUE)

Arguments

use.ggplot

If TRUE uses ggplot2. FALSE not yet supported.

rbf.object

Object from an RBF_* call. Has to include Posterior samples (store.samples = TRUE).

Details

plot.ReplicationBF generally is a Savage-Dickey ratio representation: Prior and Posterior distributions are plotted and the ratio of the distributions at δ = 0 is calculated (see Wagenmakers et al., 2010).

Value

A ggplot2 object containing the plot.

References

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
# Run RBF function with store.samples = T to save posterior samples used
# for plotting
rbf <- RBF_ttest(2.18, c(10, 11), 3.06, c(27, 27), method = "NormApprox",
  store.samples = T)
plot(rbf)

# If samples are missing, plot() will throw an error:
rbf <- RBF_ttest(2.18, c(10, 11), 3.06, c(27, 27), method = "NormApprox")
plot(rbf)

## End(Not run)

neurotroph/ReplicationBF documentation built on May 28, 2019, 3:39 p.m.