Computes false discovery rate from two PDAG caugi::caugi objects.
It converts the caugi::caugi objects to adjacency matrices and computes
false discovery rate as FP/(FP + TP), where FP are false positives and
TP are truth positives. If FP + TP = 0, 1 is returned.
Only supports caugi::caugi objects with these edge types present -->, <-->, --- and no edge.
Usage
fdr(truth, est, type = c("adj", "dir"))
Value
A numeric in [0,1].
Arguments
truth
A caugi::caugi object representing the truth graph.
est
A caugi::caugi object representing the estimated graph.
type
Character string specifying the comparison type:
"adj": adjacency comparison.
"dir": orientation comparison conditional on shared adjacencies.