View source: R/compare_weights.R
| summarise_weights | R Documentation |
Describes the distribution of the weights of each measure: number of
edges, mean, standard deviation, extremes, quantiles, and the share of
weights equal to zero. \insertCiteshen2019biblionetwork compare the
measures through the shape of their distributions (they report a smooth,
right-skewed distribution, well fitted by a lognormal, for the idf-weighted
similarity, and more scattered and irregular ones for the other measures
except the raw count), which matters when the weights are used by a
community detection algorithm or filtered by a threshold. Read the
summaries with the scales in mind: a cosine is bounded by 1, the
coupling strength is not, so means and quantiles of different measures are
not comparable. The ratio_q99_median column, a scale-free indicator of
how heavy the right tail is, is.
summarise_weights(edges, probs = c(0.01, 0.25, 0.5, 0.75, 0.99))
edges |
A named list of edge tables with a |
probs |
Numeric vector of probabilities for the quantiles. |
A data.table with one row per measure: method, n_edges,
mean, sd, min, one column per quantile (q01, q25...), max,
share_zero and ratio_q99_median.
Other tools to compare coupling measures:
compute_couplings(),
correlate_weights(),
merge_weights(),
overlap_top_weights(),
plot_weights()
library(biblionetwork)
edges <- compute_couplings(Ref_stagflation, "Citing_ItemID_Ref", "ItemID_Ref",
weight_threshold = 2)
summarise_weights(edges)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.