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.
#Draw a matrix of normal valuesn<-matrix(rnorm(25),nrow=5,ncol=5)
#Dichotomize by the mean valueevent2dichot(n,"mean")
#Dichotomize by the 0.95 quantileevent2dichot(n,"quantile",0.95)