Skip to contents

Prints summary statistics from an object of class abnDag

Usage

# S3 method for class 'abnDag'
summary(object, ...)

Arguments

object

an object of class abnLearned, abnFit. Alternatively, a matrix or a formula statement defining the network structure, a directed acyclic graph (DAG). Note that row names must be set up or given in node.names.

...

additional parameters. Not used at the moment.

Value

List with summary statistics of the DAG.

Examples

mydag <- createAbnDag(dag = ~a+b|a, data.df = data.frame("a"=1, "b"=1))
summary(mydag)
#> $n.nodes
#> [1] 2
#> 
#> $n.arcs
#> [1] 1
#> 
#> $mb.average
#> [1] 1
#> 
#> $nh.average
#> [1] 1
#> 
#> $parent.average
#> [1] 0.5
#> 
#> $children.average
#> [1] 0.5
#>