HDI {easybgm} | R Documentation |
Plot of interaction parameters and their 95% highest density intervals
Description
Plots the 95% highest density interval of the posterior distribution of the parameter estimates. The plot can be used to visualize the uncertainty of the partial association estimates. The x-axis indicates the strength of the partial association. The y-axis indicates the edge between nodes $i$ and $j$. The farther the posterior estimates (i.e., the points in the plot) are from zero, the stronger the partial association of the edge. The wider the highest density intervals (i.e., the error bar around the point), the less certain we are about the strength of the association.
Usage
plot_parameterHDI(output, ...)
Arguments
output |
Output object from the easybgm function. Supports also objects from the bgm function of the |
... |
Additional arguments passed onto |
Value
Returns a plot
Examples
library(easybgm)
library(bgms)
data <- na.omit(Wenchuan)
subdata <- data[1:50, 1:3] #for demonstration choosing a subset to increase computation speed
fit <- easybgm(subdata, type = "ordinal",
iter = 1000, # for demonstration only (> 5e4 recommended)
save = TRUE)
plot_parameterHDI(fit)
[Package easybgm version 0.1.2 Index]