event2dichot {sna} | R Documentation |
Given a valued adjacency matrix (possibly derived from observed interaction ``events''), event2dichot
returns a dichotomous adjacency matrix.
event2dichot(m, method="quantile", thresh=0.5, leq=FALSE)
m |
An adjacency matrix |
method |
One of ``quantile,'' ``rquantile,'' ``cquantile,'' ``mean,'' ``rmean,'' ``cmean,'' ``absolute,'' ``rank,'' ``rrank,'' or ``crank'' |
thresh |
Dichotomization thresholds for ranks or quantiles |
leq |
Boolean indicating whether values less than or equal to the threshold should be taken as existing edges; the alternative is to use values strictly greater than the threshold |
The methods used for choosing dichotomization thresholds are as follows:
thresh
itself
Note that when a quantile, rank, or value is said to be ``specified,'' this refers to the value of thresh
.
The dichotomized data matrix
Carter T. Butts buttsc@uci.edu
~put references to the literature/web site here ~
#Draw a matrix of normal values n<-matrix(rnorm(25),nrow=5,ncol=5) #Dichotomize by the mean value event2dichot(n,"mean") #Dichotomize by the 0.95 quantile event2dichot(n,"quantile",0.95)