| null_moran | R Documentation |
Generates spatially-constrained surrogate brain maps using Moran's eigenvector maps (MEMs) for spectral randomization.
null_moran(
data,
distmat,
n_perm = 1000L,
seed = NULL,
procedure = c("pair", "singleton"),
kernel = c("inverse_distance", "exponential", "gaussian", "bisquare"),
tol = 1e-06
)
data |
Numeric vector of brain map values. |
distmat |
Distance matrix between parcels/vertices. |
n_perm |
Integer number of null permutations to generate. |
seed |
Optional integer seed for reproducibility. |
procedure |
Character, either |
kernel |
Weight matrix kernel: |
tol |
Numeric tolerance for eigenvalue comparison. |
A null_distribution object.
Wagner HH, Dray S (2015) Methods in Ecology and Evolution 6:1169-1178. doi:10.1111/2041-210X.12407
data <- rnorm(50)
distmat <- as.matrix(dist(matrix(rnorm(100), 50, 2)))
nd <- null_moran(data, distmat, n_perm = 10L, seed = 1L)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.