Description Usage Arguments Details Value Examples
View source: R/sparsebn-main.R
Estimate the structure of a DAG (Bayesian network) from data. Works with any combination of discrete / continuous and observational / experimental data.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
data |
Data as |
lambdas |
(optional) Numeric vector containing a grid of lambda values (i.e. regularization parameters) to use in the solution path. If missing, a default grid of values will be used based on a decreasing log-scale (see also generate.lambdas). |
lambdas.length |
Integer number of values to include in the solution path. If |
whitelist |
A two-column matrix of edges that are guaranteed to be in each
estimate (a "white list"). Each row in this matrix corresponds
to an edge that is to be whitelisted. These edges can be
specified by node name (as a |
blacklist |
A two-column matrix of edges that are guaranteed to be absent
from each estimate (a "black list"). See argument
" |
error.tol |
Error tolerance for the algorithm, used to test for convergence. |
max.iters |
Maximum number of iterations for each internal sweep. |
edge.threshold |
Threshold parameter used to terminate the algorithm whenever the number of edges in the
current estimate has |
concavity |
(CCDr only) Value of concavity parameter. If |
weight.scale |
(CD only) A postitive number to scale weight matrix. |
convLb |
(CD only) Small positive number used in Hessian approximation. |
upperbound |
(CD only) A large positive value used to truncate the adaptive weights. A -1 value indicates that there is no truncation. |
adaptive |
(CD only) |
verbose |
|
For details on the underlying methods, see ccdr.run
and cd.run
.
A sparsebnPath
object.
1 2 3 4 | # Estimate a DAG from the cytometry data
data(cytometryContinuous)
dat <- sparsebnData(cytometryContinuous$data, type = "c", ivn = cytometryContinuous$ivn)
estimate.dag(dat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.