Description Usage Arguments Details Value References Examples
View source: R/coupling_similarity.R
This function calculates a refined similarity measure of coupling links, from a direct citation data frame.
It is sinpired by \insertCiteshen2019biblionetwork. To a certain extent, it mixes the coupling_strength()
function with
the cosine measure of the biblio_coupling()
function.
1 2 3 4 5 6 7 | coupling_similarity(
dt,
source,
ref,
weight_threshold = 1,
output_in_character = TRUE
)
|
dt |
The table with citing and cited documents. |
source |
The column name of the source identifiers, that is the documents that are citing. In bibliographic coupling, these documents are the nodes of the network. |
ref |
The column name of the references that are cited. |
weight_threshold |
Corresponds to the value of the non-normalized weights of edges. The function just keeps the edges
that have a non-normalized weight superior to the |
output_in_character |
If TRUE, the function ends by transforming the |
The function use the following formalisation:
\frac{R_{S}(A) \bullet R_{S}(B)}{√{R_{S}(A).R_{S}(B)}}
with
R_{S}(A) \bullet R_{S}(B) = ∑_{j}√{log({\frac{N}{freq(R_{j})}})}
that is a measure similar to the coupling strength measure;
and
R_{S}(A).R_{S}(B) = ∑_{j}√{log({\frac{N}{freq(R_{j}(A))}})} . ∑_{j}√{log({\frac{N}{freq(R_{j}(B))}})}
which is the separated sum for each article of the normalized value of a citation. It is the cosine measure of documents A and B but adapted to the spirit of the coupling strength.
A data.table with the articles identifiers in from
and to
columns, with the similarity measure in
another column. It also keeps a copy of from
and to
in the Source
and Target
columns. This is useful is you
are using the tidygraph package then, where from
and to
values are modified when creating a graph.
1 2 3 4 | library(biblionetwork)
coupling_similarity(Ref_stagflation,
source = "Citing_ItemID_Ref",
ref = "ItemID_Ref")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.