prior_sensitivity {easybgm} | R Documentation |
Plot sensitivity to edge inclusion prior setting
Description
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.
Usage
plot_prior_sensitivity(output, ...)
Arguments
output |
A list of easybgm outputs with different prior edge inclusion probabilities |
... |
Additional arguments passed onto ggplot2. |
Details
Prior sensitivity plot
Value
Returns a plot
Examples
#not run due to computation speed
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))
[Package easybgm version 0.1.2 Index]