View source: R/nulls-burt2018.R
| null_burt2018 | R Documentation |
Generates surrogate brain maps using a spatial autoregressive (SAR) model. Estimates spatial autocorrelation and distance decay parameters, then generates surrogates by solving the SAR equation and rank-matching to the original data.
null_burt2018(data, distmat, n_perm = 1000L, seed = NULL)
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. |
A null_distribution object.
Burt JB et al. (2018) Nature Neuroscience 21:1251-1259. doi:10.1038/s41593-018-0195-0
data <- rnorm(50)
distmat <- as.matrix(dist(matrix(rnorm(100), 50, 2)))
nd <- null_burt2018(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.