slm_threshold_statistical_map | R Documentation |
Threshold a statistical map by setting all values with p > alpha to NaN.
slm_threshold_statistical_map(x, p, alpha = 0.05, p.adjust.method = "none")
x |
numerical vector of input data values (not p values, see parameter p for those). The ones not surviving the correction for multiple comparisons of their respective p value will be set to NaN in the output. |
p |
the p-values for the x values |
alpha |
the alpha level |
p.adjust.method |
passed on to |
numerical vector, a version of x in which the values that did not survive the correction for multiple comparisons of their respective p value are set to NaN.
C Ecker, documentation by T Schaefer
braindata = rnorm(40, 5.0, 0.2); braindata_p = rnorm(40, 0.05, 0.1); data_thresh = slm_threshold_statistical_map(braindata, braindata_p);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.