nimare.transforms.p_to_z
- p_to_z(p, tail='two')[source]
Convert p-values to (unsigned) z-values.
Changed in version 0.21.0: Evaluated in log space, and the input is no longer routed through a float32 p-value, which bounded
zat 14.12. The bound is now the float64 one, 38.5;nlogp_to_z()has no bound.Added in version 0.0.3.
- Parameters:
p (array_like) – P-values
tail ({'one', 'two'}, optional) – Whether p-values come from one-tailed or two-tailed test. Default is ‘two’.
- Returns:
z – Z-statistics (unsigned)
- Return type:
array_like