structure_probs | R Documentation |
Plots the posterior structure probabilities of all visited structures, sorted from the most to the least probable.
plot_structure_probabilities(output, as_BF = FALSE, ...)
output |
Output object from the easybgm function. Supports also objects from the bgm function of the |
as_BF |
If TRUE plots the y-axis as Bayes factors instead of posterior structure probability. Default is FALSE. |
... |
Additional arguments passed onto |
Returns a plot
library(easybgm)
library(bgms)
data <- na.omit(Wenchuan)
fit <- easybgm(data, type = "ordinal", save = TRUE, edge_selection = TRUE,
iter = 1000 # for demonstration only (> 5e4 recommended)
)
plot_structure_probabilities(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.