as.roc.ep: Prepare an edge probability matrix for a ROC plot.

Description Usage Arguments Value See Also

View source: R/post.R

Description

Compares an edge probability matrices x to a true graph true, and returns the number of true and false positives.

Usage

1
2
3
  ## S3 method for class 'ep'
 as.roc(x, true, thresholds, label, verbose,
    ...)

Arguments

x

A matrix of class ep of edge probabilities

true

A bn. The true graph.

thresholds

A numeric vector of thresholds.

label

A label

verbose

A logical. Should progress should be displayed?

...

Further arguments (unused)

Value

A data frame, with columns estimate, tp, and fp. The first contains the supplied label; the latter two contain the number of true and false positives respectively. Rows correspond to the supplied thresholds.

See Also

For lists of edge probability matrices, see as.roc.ep.list. For graphs, as.roc.parental and as.roc.parental.list. as.roc.ep.list


rjbgoudie/structmcmc documentation built on Nov. 3, 2020, 3:41 a.m.