slm_threshold_statistical_map: Threshold a statistical map by setting all values with p >...

View source: R/mass_glm.R

slm_threshold_statistical_mapR Documentation

Threshold a statistical map by setting all values with p > alpha to NaN.

Description

Threshold a statistical map by setting all values with p > alpha to NaN.

Usage

slm_threshold_statistical_map(x, p, alpha = 0.05, p.adjust.method = "none")

Arguments

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 stats::p.adjust

Value

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.

Author(s)

C Ecker, documentation by T Schaefer

Examples

    braindata = rnorm(40, 5.0, 0.2);
    braindata_p = rnorm(40, 0.05, 0.1);
    data_thresh = slm_threshold_statistical_map(braindata, braindata_p);


dfsp-spirit/brainnet documentation built on July 11, 2022, 5:54 a.m.