Skip to contents

Edge tables and generics

The shared long edge-table format, and generics that packages implement for their fitted models.

edge_index()
Edge index in the shared edge-table format
as_pip_table()
Build a long PIP table from per-group PIP matrices
diff_edge_table()
Table of differential edges between two estimates
pip_table()
Posterior inclusion probabilities as a long edge table
pcor_estimate()
Point estimates of partial correlations
pcor_estimate(<jgl>)
Partial correlations from a joint graphical lasso fit

Evaluation against a known graph

roc_auc()
ROC curve and AUC for edge recovery
pr_auc()
Precision-recall curve and AUPR for edge recovery
plot_roc()
Plot an ROC curve
confusion_at_threshold()
Confusion metrics for edge selection at a threshold
topk_overlap()
Overlap of the top-k edges of two score vectors

Estimation error and tuning

relative_frobenius()
Relative Frobenius error of a matrix estimate
kl_divergence()
Kullback-Leibler divergence of an estimated Gaussian graphical model
ggm_bic()
BIC for multiple Gaussian graphical models

Edge selection

bayes_fdr()
Bayesian false discovery rate selection
pooled_perm_pvalues()
Empirical p-values against a pooled permutation null

Matrix utilities

precision_to_pcor()
Convert a precision matrix to partial correlations
threshold_to_adjacency()
Threshold a matrix to an adjacency matrix
diff_adjacency()
Structural differential edges between two graphs
upper_tri_to_matrix()
Symmetric matrix from an upper triangle

Data

brca_pi3k
TCGA breast cancer PI3K pathway expression, Normal vs Tumor