perm_dist | R Documentation |
Obtains the permutation distribution of the maximum statistic and the STCS, named maxT and stcs, respectively. Returns a list containing maxT and stcs: each a vector of length nperm where each entry is the maximum of the nth permutation. Together form the permutation distribution, of which the (1-alpha)th percentile is the threshold of significance adjusted for multiple testing.
perm_dist(
data,
fx,
nperm = 1000,
alpha_local,
alpha_global,
null_distribution,
block_size = NULL,
seed,
verbose = TRUE
)
data |
Data in a 3d array, where the first two dimensions are the physical dimensions (e.g., lon and lat), and the third one is time. |
fx |
function to be applied at each grid cell. Should be self sufficient - no extra arguments needed. Should return only the test statistic |
nperm |
number of permutations. Defaults to 1000 |
verbose |
Counter returning when the function is done with 10 function calls |
returns the distribution of maxT and stcs, each a vector in a list
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.