prediction_scores | R Documentation |
This function returns a set of metrics useful to evaluate the goodness of the estimation of the graph on simulated data, or whenever a true graph is available.
prediction_scores(trueG, estimatedG)
trueG |
the adjacency matrix of the true graph. |
estimatedG |
the adjacency matrix of the estimated graph. |
A vector with the number of true positives (TP), the number of false positives (FP), the number of false negatives (FN), the positive predictive value (PPV), the sensitivity (Se), and the F1 score (F1).
set.seed(123)
adj <- matrix(c(0, 1, 1, 1, 0, 1, 1, 1, 0), nrow=3)
mat <- simdata(n=100, p=3, B=adj, mu=5, mu_noise=1)
res <- PCzinb(mat, method="poi", alpha=0.05)
prediction_scores(adj, res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.