prior_sensitivity | R Documentation |
For a given list of easybgm outputs with different prior edge inclusion probabilities, the function plots the percentage of edges that are included, excluded, and inconclusive.
plot_prior_sensitivity(output, ...)
output |
A list of easybgm outputs with different prior edge inclusion probabilities |
... |
Additional arguments passed onto ggplot2. |
Prior sensitivity plot
Returns a plot
library(easybgm)
library(bgms)
#data <- na.omit(Wenchuan)
#fit1 <- easybgm(data, type = "ordinal",
# iter = 1000 # for demonstration only (> 5e4 recommended),
# inclusion_probability = .1
# )
#fit2 <- easybgm(data, type = "ordinal",
# iter = 1000,
# inclusion_probability = .5
# )
#fit3 <- easybgm(data, type = "ordinal",
# iter = 1000, inclusion_probability = .9)
#plot_prior_sensitivity(list(fit1, fit2, fit3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.