| generate_nulls | R Documentation |
Dispatches to the appropriate null model method for generating spatially-constrained surrogate brain maps.
generate_nulls(
data,
method = c("burt2020", "moran", "spin_vasa", "spin_hungarian", "alexander_bloch",
"baum", "cornblath", "burt2018"),
n_perm = 1000L,
distmat = NULL,
coords = NULL,
parcellation = NULL,
seed = NULL,
...
)
data |
Numeric vector of brain map values. |
method |
Character string specifying the null model method. |
n_perm |
Integer number of null permutations to generate. |
distmat |
Distance matrix (required for |
coords |
List with |
parcellation |
Integer vector of parcel labels (required for |
seed |
Optional integer seed for reproducibility. |
... |
Additional arguments passed to the specific null method
(e.g. |
A null_distribution object.
Markello RD et al. (2022) Nature Methods 19:1472-1480. doi:10.1038/s41592-022-01625-w
data <- rnorm(100)
distmat <- as.matrix(dist(seq_len(100)))
nd <- generate_nulls(data, method = "moran", distmat = distmat, n_perm = 10L)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.