matrix2strength: Matrix to Strength

Description Usage Arguments Value Examples

Description

Covert matrix with edge probabilities to bn.strength object.

Usage

1
matrix2strength(A, nodes)

Arguments

A

Matrix with edge probability (occurence)

nodes

Names of nodes (ordering correspond to A's rows and columns)

Value

bn.strength object

Examples

1
2
3
4
5
6
rg <- tabu(gaussian.test)
nw <- import.bnlearn(rg)

all.edges <- function(nw) nw$adjmat
A <- mcmc(nw, gaussian.test, all.edges, verbose=FALSE, trace=FALSE)
strength.plot(export.bnlearn(nw), matrix2strength(A, nw$nodes))

simecek/mhnet documentation built on May 29, 2019, 10:01 p.m.