fwe.z2p: Convert Z-score value to FWER corrected p-value

View source: R/ptfce.r

fwe.z2pR Documentation

Convert Z-score value to FWER corrected p-value

Description

https://github.com/spisakt/pTFCE

Usage

fwe.z2p(resel_count, Z)

Arguments

resel_count

resel count

Z

z-score value

Details

The Z-score value is converted to to p-value, corrected for multiple comparisons by controlling for famili-wise error rate The parameter resel_count is the number of resels (resolution elements) in the image, and can be obtained e.g by smoothest() (see examples).

Value

FWER-corrected p-value

Examples

## Not run: 
s=smoothest(zmap, mask)
fwe.z2p(resel_count=s$volume/s$resels, Z=2.3)

pTFCE=ptfe(zmap, mask)
fwe.z2p(pTFCE$number_of_resels, Z=3.1)

## End(Not run)

spisakt/pTFCE documentation built on Aug. 22, 2023, 7:42 p.m.