summarise_weights: Summarise the distribution of the weights of each measure

View source: R/compare_weights.R

summarise_weightsR Documentation

Summarise the distribution of the weights of each measure

Description

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.

Usage

summarise_weights(edges, probs = c(0.01, 0.25, 0.5, 0.75, 0.99))

Arguments

edges

A named list of edge tables with a weight column, for instance from compute_couplings().

probs

Numeric vector of probabilities for the quantiles.

Details

[Experimental]

Value

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.

References

\insertAllCited

See Also

Other tools to compare coupling measures: compute_couplings(), correlate_weights(), merge_weights(), overlap_top_weights(), plot_weights()

Examples

library(biblionetwork)
edges <- compute_couplings(Ref_stagflation, "Citing_ItemID_Ref", "ItemID_Ref",
                           weight_threshold = 2)
summarise_weights(edges)


biblionetwork documentation built on Nov. 4, 2026, 5:07 p.m.