View source: R/posteriorparameters.R
DAGparameters | R Documentation |
DAGparameters
takes a DAG and augments it with parameters.
For binary data these are the parameters of the posterior beta
distributions and its mean. For continuous data, these are parameters
of the posterior distributions of the edge coefficients from arXiv:2010.00684.
There is support for user-defined augmentation, with the caveat that it
must match the output format of either the binary or continuous cases.
DAGparameters(incidence, dataParams, unrollDBN = TRUE)
incidence |
a single adjacency matrix with entry [i,j] equal to 1 when a directed edge exists from node i to node j |
dataParams |
the data and parameters used to learn the DAGs derived from the
|
unrollDBN |
logical indicating whether to unroll a DBN to a full DAG over all time slices (TRUE, default) or to use the compact representation (FALSE) |
the DAG and a list of parameters for each node given its parents
scoreParam <- BiDAG::scoreparameters("bde", BiDAG::Asia) AsiaParam <- DAGparameters(BiDAG::Asiamat, scoreParam)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.