Convert a coincidence/similarity/distance matrix into an edge list form.
edgeList(data, procedures="Haberman",
criteria="Z", level=.95, Bonferroni=FALSE,
min=-Inf, max=Inf, support=-Inf, directed=FALSE,
diagonal=FALSE, sort=NULL, decreasing=TRUE, pairwise=FALSE)
A data frame in which the two first columns are source and target. The rest of the columns are the different statistics explicited in funcs
parameter.
a coin object, let's say an R matrix with frequencies and an attribute (n
) giving the number of scenarios. In case of change of shape, data
should be a matrix.
a vector of statistics of similarity. See below.
statistic to be use for selection criteria.
confidence level
Bonferroni criterium of the signification test.
minimum value of the statistic to include the edge in the list.
maximum value of the statistic to include the edge in the list.
minimum value of the frequency of the coincidence to be edged
includes same edges only once.
includes auto-links
sort the list according to the values of a statistic. See below
order in a decreasing way.
Pairwise mode of handling missing values if TRUE. Listwise by default.
Modesto Escobar, Department of Sociology and Communication, University of Salamanca. See https://sociocav.usal.es/blog/modesto-escobar/
Possible measures in procedures are
Frequencies (f), Relative frequencies (x), Conditional frequencies (i), Coincidence degree (cc), Probable degree (cp),
Expected (e), Confidence interval (con)
Matching (m), Rogers & Tanimoto (t), Gower (g), Sneath (s), Anderberg (and),
Jaccard (j), Dice (d), antiDice (a), Ochiai (o), Kulczynski (k),
Hamann (ham), Yule (y), Pearson (p), odds ratio (od), Rusell (r),
Haberman (h), Z value of Haberman (z),
Hypergeometric p greater value (hyp).
Convert a matrix into an edge list (shape).
Escobar, M. and Martinez-Uribe, L. (2020)
Network Coincidence Analysis: The netCoin
R
Package.
Journal of Statistical Software, 93, 1-32.
tools:::Rd_expr_doi("10.18637/jss.v093.i11").
# From a random incidence matrix I(25X4)
I<-matrix(rbinom(100,1,.5),nrow=25,ncol=4,
dimnames=list(NULL,c("A","B","C","D")))
C<-coin(I)
edgeList(C)
Run the code above in your browser using DataLab