Applying PC
1.1: Expert graph
1.2: Estimated CPDAG (pc, sparsity = 0.05)
1.2: Estimated CPDAG (pc, sparsity = 0.005)
2.1: Comparing graphs
> confusion(pcres, expertm)
$tp
[1] 12
$tn
[1] 12
$fp
[1] 7
$fn
[1] 5
> confusion(pcres, expertm, type = "dir")
$tp
[1] 2
$tn
[1] 0
$fp
[1] 3
$fn
[1] 10
2.2: Changing the sparsity level (level: 0.1)
2.3: Changing the test
2.4: More variables or more observations?
2.5: Adjacency matrices