Learn R Programming

easybgm (version 0.2.1)

prior_sensitivity: 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, ...)

Value

Returns a plot

Arguments

output

A list of easybgm outputs with different prior edge inclusion probabilities

...

Additional arguments passed onto ggplot2.

Details

Prior sensitivity plot

Examples

Run this code
# \donttest{

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))
# }

Run the code above in your browser using DataLab