| bayesvl-class | R Documentation |
bayesvl: Object Class for BayesVL ModelsAn S4 class that represents a Bayesian model created using the bayesvl package.
This object is typically returned by functions such as bayesvl.
callOriginal function call that created the model.
nodesList of nodes in the model.
arcsList of arcs (edges) connecting the nodes.
parsList of model parameters.
stanfitAn object of class stanfit, representing the fitted Stan model.
rawdataA data frame containing observed input data.
standataData list used for Stan sampling.
posteriorA data frame representation of posterior draws from the stanfit object.
elapsedElapsed time for the MCMC simulation (in seconds).
showsignature(object = "bayesvl"): Prints a default summary of the model.
summaryDisplays a more detailed overview of the model structure and output.
For documentation, case studies, worked examples, and other tutorial materials, visit our GitHub:
For case studies using the package in research articles, refer to:
bayesvl
# Design the model in a directed acyclic graph
model <- bayesvl()
# Add observed data nodes to the model
model <- bvl_addNode(model, "Lie", "binom")
model <- bvl_addNode(model, "B", "binom")
model <- bvl_addNode(model, "C", "binom")
model <- bvl_addNode(model, "T", "binom")
# Add paths between nodes
model <- bvl_addArc(model, "B", "Lie", "slope")
model <- bvl_addArc(model, "C", "Lie", "slope")
model <- bvl_addArc(model, "T", "Lie", "slope")
# Summarize the model
summary(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.