sparsebnUtils: Utilities for the sparsebn package.



A set of tools for representing and estimating sparse Bayesian networks from continuous and discrete data.


This package provides various S3 classes for making it easy to estimate graphical models from data:

  • sparsebnData for managing experimental data with interventions.

  • sparsebnFit for representing the output of a DAG learning algorithm.

  • sparsebnPath for representing a solution path of estimates.

The package also provides methods for manipulating these objects and for estimating parameters in graphical models:

  • estimate.parameters for directed graphs.

  • get.precision for undirected graphs.

  • get.covariance for covariance matrices.

Internally, all graph objects may be stored as edgeLists (default), or using graphNEL, igraph, bnlearn, or network objects.

Want to suggest features or report bugs for Use the GitHub issue tracker.