Skip to contents

Convert to a gRain object.

Usage

togRain(x, ...)

Arguments

x

An adjacency matrix or igraph object.

...

extra parameters to gRain compile.

Value

A gRain object.

Examples

dag <- bnlearn::model2network("[A][C][F][B|A][D|A:C][E|B:F]")
gRain_obj <- togRain(x = dag |> toMatrix(), data = bnlearn::learning.test)