jaccard.index | R Documentation |
Compute Jaccard index to determine similarity between activation maps.
jaccard.index(x, y, value.if.both.nulls = 1)
x |
vector of 0's (inactives) and 1's (actives). |
y |
vector of 0's (inactives) and 1's (actives). |
value.if.both.nulls |
value to be returned if both x and y are all 0. By default, this is set to 1 but can be set by the user to a desired value, for instance, when it is known that x and y are incorrectly all 0. |
x and y need to be of the same size. NAs will be automatically removed. A value close to 1 means excellent similarity between the actives in x and those in y while values close to zero indicate very little similarity.
Israel Almodovar-Rivera and Ranjan Maitra.
Almodovar-Rivera, I., & Maitra, R. (2019). FAST adaptive smoothing and thresholding for improved activation detection in low-signal fMRI. IEEE Transactions on Medical Imaging, 38(12), 2821-2828.
Maitra, R. (2010). A re-defined and generalized percent-overlap-of-activation measure for studies of fMRI reproducibility and its use in identifying outlier activation maps. Neuroimage, 50(1), 124-135.
Jaccard, P. (1901). Etude comparative de la distribution florale dans une portion des Alpes et des Jura. Bull Soc Vaudoise Sci Nat, 37, 547-579.
## Not run: set.seed(787) x <- sample(x = 0:1,size = 50,replace=TRUE) y <- sample(x = 0:1,size = 50,replace=TRUE) jaccard.index(x = x,y = y) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.