Description Usage Arguments Details Value References Examples
This method can be used to visually represent a Replication Bayes Factor.
1 | plot.ReplicationBF(x, ..., use.ggplot = TRUE)
|
use.ggplot |
If |
rbf.object |
Object from an |
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).
A ggplot2
object containing the plot.
Wagenmakers2010ReplicationBF
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.