bayesvl-class: Class 'bayesvl': object class of bayesvl model

Description Slots Methods References See Also Examples

Description

This object contains an object of class bayesvl, return by bayesvl.

Slots

call:

Original function call that produced the fit

nodes:

The list of nodes in model

arcs:

The list of arcs in model

pars:

List of parameters

stanfit:

Object of class stanfit

rawdata:

Observed data frame

standata:

Data used in sampling

posterior:

Coerce to a Data Frame of object of class stanfit

elapsed:

Elapsed time of MCMC simulation

Methods

show

signature(object = "bayesvl"): print the default summary for the model.

summary

Displays the model slot.

References

For documentation, case studies and worked examples, and other tutorial information visit the References section on our Github:

See Also

bayesvl

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
	# Design the model in 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 path between nodes
	model <- bvl_addArc(model, "B", "Lie", "slope")
	model <- bvl_addArc(model, "C", "Lie", "slope")
	model <- bvl_addArc(model, "T", "Lie", "slope")
  
  summary(model)

bayesvl documentation built on May 24, 2019, 5:09 p.m.