fwe.p2z: Get Z-score threshold for an FWER corrected p-value

View source: R/ptfce.r

fwe.p2zR Documentation

Get Z-score threshold for an FWER corrected p-value

Description

https://github.com/spisakt/pTFCE

Usage

fwe.p2z(resel_count, FWEP = 0.05)

Arguments

resel_count

resel count

FWEP

FWER corrected p-value

Details

The p-value, corrected for multiple comparisons by controlling for family-wise error rate, is converted to a Z-score threshold. 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

Z-score threshold

Examples

## Not run: 
s=smoothest(zmap, mask)
fwe.p2z(resel_count=s$volume/s$resels, FWEP=0.05)

pTFCE=ptfe(zmap, mask)
fwe.p2z(pTFCE$number_of_resels, FWEP=0.05)

## End(Not run)

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