View source: R/compare_network.R
| compare_model | R Documentation |
Computes a battery of descriptive comparison metrics between two networks or two weight matrices: weight deviations (mean / median / RMS / max absolute difference, relative mean absolute difference, coefficient-of- variation ratio), four correlation measures (Pearson, Spearman, Kendall, distance correlation), five dissimilarity measures (Euclidean, Manhattan, Canberra, Bray-Curtis, Frobenius), five similarity measures (Cosine, Jaccard, Dice, Overlap, RV), pattern agreements, and side-by-side network metrics. Optionally adds centrality differences and centrality correlations.
compare_model(x, ...)
## S3 method for class 'netobject'
compare_model(
x,
y,
scaling = "none",
measures = character(0),
network = TRUE,
...
)
## S3 method for class 'cograph_network'
compare_model(
x,
y,
scaling = "none",
measures = character(0),
network = TRUE,
...
)
## S3 method for class 'matrix'
compare_model(
x,
y,
scaling = "none",
measures = character(0),
network = TRUE,
...
)
x |
A |
... |
Ignored. |
y |
A |
scaling |
Scaling applied to both weight matrices before comparison. One of:
Scalings that produce negative weights ( |
measures |
Character vector of centrality measures to compare. Empty
by default (no centrality block). Valid names are |
network |
Logical. Include side-by-side network metrics from
|
Mirrors tna::compare() numerically. Inputs are converted to weight
matrices and scaled before comparison; the choice of scaling determines
how weights from different estimators are placed on a common footing.
A net_comparison object: a named list with matrices,
difference_matrix, edge_metrics, summary_metrics, optionally
network_metrics, centrality_differences, centrality_correlations.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.