sparsebnUtils: Utilities for Learning Sparse Bayesian Networks

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

Install the latest version of this package by entering the following in R:
AuthorBryon Aragam [aut, cre], Jiaying Gu [aut]
Date of publication2017-03-09 08:18:42
MaintainerBryon Aragam <>
LicenseGPL (>= 2)

View on CRAN

Man pages Convert a sparsebnData object back to a data.frame

as.edgeList: as.edgeList

as.sparse: as.sparse

coerce_discrete: Recode discrete data

count.interventions: Count the number of rows under intervention

count.levels: Count the number of levels per variable

edgeList: edgeList class

estimate.parameters: Estimate the parameters of a Bayesian network

fit_glm_dag: Inference in Bayesian networks

fit_multinom_dag: Inference in discrete Bayesian networks

generate.lambdas: generate.lambdas

get.adjacency.matrix: get.adjacency.matrix

get.covariance: Covariance and precision matrices

get.lambdas: get.lambdas

get.nodes: get.nodes

get.solution: Select solutions from a solution path

is.obs: Check if data is observational

num.edges: num.edges

num.nodes: num.nodes

num.samples: num.samples

permute.nodes: Permute the order of nodes in a graph

plot.edgeList: Plot a fitted Bayesian network object

random.dag: Generate random DAGs

random.graph: Generate random DAGs

random.spd: Generate a random positive definite matrix

select: Select solutions from a solution path

select.parameter: Tuning parameter selection

setGraphPackage: Change data structure for representing graphs internally

setPlotPackage: Change default plotting mechanism

show.parents: Inspect subgraph

sparse: sparse class

sparsebnData: sparsebnData class

sparsebnFit: sparsebnFit class

sparsebn-functions: Utility functions

sparsebn-messages: Messages

sparsebnPath: sparsebnPath class

sparsebnUtils: sparsebnUtils: Utilities for the sparsebn package.

to_bn: Conversion to bnlearn object

to_edgeList: Conversion to edgeList object

to_graphNEL: Conversion to graphNEL object

to_igraph: Conversion to igraph object

to_network: Conversion to network object


alg_input_data_frame Man page Man page
as.edgeList Man page
as.sparse Man page
auto_count_levels Man page
auto_generate_levels Man page
capitalize Man page
check_if_complete_data Man page
check_if_data_matrix Man page
check_if_matrix Man page
check_if_numeric_data Man page
check_list_class Man page
check_list_names Man page
check_list_numeric Man page
check_na Man page
check_null Man page
coerce_discrete Man page
coerce_discrete.character Man page Man page
coerce_discrete.factor Man page
coerce_discrete.integer Man page
coerce_discrete.numeric Man page
coerce_discrete.sparsebnData Man page
col_classes Man page
convert_factor_to_discrete Man page
cor_vector_ivn Man page
count.interventions Man page
count.levels Man page
count_nas Man page
dag_summary Man page
data_not_numeric Man page
default_alpha Man page
default_max_iters Man page
edgeList Man page
empty_dag_summary Man page
estimate.parameters Man page
feature_not_supported Man page
fit_glm_dag Man page
fit_multinom_dag Man page
generate.lambdas Man page
get.adjacency.matrix Man page
get.adjacency.matrix.edgeList Man page
get.adjacency.matrix.sparsebnFit Man page
get.adjacency.matrix.sparsebnPath Man page
get.covariance Man page
getGraphPackage Man page
get.lambdas Man page
get.lambdas.sparsebnPath Man page
get.nodes Man page
get.nodes.sparsebnFit Man page
get.nodes.sparsebnPath Man page
getPlotPackage Man page
get.precision Man page
get.solution Man page
global_coerce_warning Man page
has_missing_values Man page
input_not_sparsebnData Man page
invalid_class Man page
invalid_pkg_specification Man page
is.edgeList Man page
is.obs Man page
is.sparse Man page
is.sparsebnData Man page
is.sparsebnFit Man page
is.sparsebnPath Man page Man page Man page
list_classes Man page
num.edges Man page
num.edges.edgeList Man page
num.edges.sparsebnFit Man page
num.edges.sparsebnPath Man page
num.nodes Man page
num.nodes.edgeList Man page
num.nodes.sparsebnFit Man page
num.nodes.sparsebnPath Man page
num.samples Man page
num.samples.sparsebnData Man page
num.samples.sparsebnFit Man page
num.samples.sparsebnPath Man page
permute.nodes Man page
pick_family Man page
pkg_not_installed Man page
plot.edgeList Man page
plot.sparsebnFit Man page
plot.sparsebnPath Man page
pmatch_numeric Man page
print.sparsebnData Man page
print.sparsebnFit Man page
print.sparsebnPath Man page
random.dag Man page
random.graph Man page
random.spd Man page
recode_levels Man page
reIndexC Man page
reIndexR Man page
resetGraphPackage Man page
select Man page
select.parameter Man page
setGraphPackage Man page
setPlotPackage Man page
show.parents Man page
sparse Man page
sparsebnData Man page Man page
sparsebnData.matrix Man page
sparsebnFit Man page
sparsebn-functions Man page
sparsebn-messages Man page
sparsebnPath Man page
sparsebnUtils Man page
sparsebnUtils-package Man page
to_bn Man page
to_edgeList Man page
to_edgeList.sparsebnFit Man page
to_graphNEL Man page
to_igraph Man page
to_network Man page
zero_threshold Man page


tests/testthat/test-random_spd.R tests/testthat/helper-sparsebnUtils-generate_objects.R tests/testthat/test-col_classes.R tests/testthat/test-show_parents.R tests/testthat/test-generate_lambdas.R tests/testthat/test-as.R tests/testthat/test-coerce_discrete.R tests/testthat/test-check_list_classes.R tests/testthat/test-inference.R tests/testthat/test-get_adjacency_matrix.R tests/testthat/test-sparsebnFit.R tests/testthat/test-num_edges.R tests/testthat/test-select.R tests/testthat/test-count_nas.R tests/testthat/test-setGraphPackage.R tests/testthat/test-compatibility.R tests/testthat/test-random_dag.R tests/testthat/test-num_nodes.R tests/testthat/test-s3_reIndex.R tests/testthat/test-cor_vector.R tests/testthat/test-check_if_data_matrix.R tests/testthat/test-fit_multinom_dag.R tests/testthat/test-sparse.R tests/testthat/test-sparsebnPath.R tests/testthat/test-random_graph.R tests/testthat/test-list_classes.R tests/testthat/test-graphNEL.R tests/testthat/test-check_if_matrix.R tests/testthat/test-sparsebnData.R tests/testthat/test-edgeList.R tests/testthat/test-select_parameter.R
R/network-compatibility.R R/sparsebnUtils-covariance.R R/s3-sparsebnData.R R/sparsebnUtils-utils.R R/sparsebnUtils-show.R R/sparsebnUtils-generate.R R/s3-sparsebnFit.R R/sparsebnUtils-inference.R R/sparsebnUtils.R R/sparsebnUtils-messages.R R/sparsebnUtils-selection.R R/sparsebnUtils-options.R R/graph-compatibility.R R/s3-generics.R R/sparsebnUtils-lambdas.R R/s3-sparse.R R/s3-edgeList.R R/s3-sparsebnPath.R R/sparsebnUtils-defaults.R R/bnlearn-compatibility.R R/igraph-compatibility.R R/zzz.R R/sparsebnUtils-functions.R
man/estimate.parameters.Rd man/get.adjacency.matrix.Rd man/select.parameter.Rd man/random.spd.Rd man/sparsebn-functions.Rd man/count.interventions.Rd man/sparsebnFit.Rd man/random.graph.Rd man/random.dag.Rd man/ man/sparse.Rd man/get.solution.Rd man/ man/sparsebn-messages.Rd man/to_network.Rd man/coerce_discrete.Rd man/sparsebnUtils.Rd man/as.edgeList.Rd man/get.covariance.Rd man/is.obs.Rd man/fit_glm_dag.Rd man/as.sparse.Rd man/sparsebnData.Rd man/setPlotPackage.Rd man/fit_multinom_dag.Rd man/setGraphPackage.Rd man/to_igraph.Rd man/to_edgeList.Rd man/num.nodes.Rd man/to_graphNEL.Rd man/get.nodes.Rd man/permute.nodes.Rd man/num.edges.Rd man/get.lambdas.Rd man/edgeList.Rd man/sparsebnPath.Rd man/count.levels.Rd man/to_bn.Rd man/plot.edgeList.Rd man/show.parents.Rd man/generate.lambdas.Rd man/select.Rd man/num.samples.Rd

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.