nimare.transforms.z_to_p

z_to_p(z, tail='two')[source]

Convert z-values to p-values.

Added in version 0.0.8.

Parameters:
  • z (array_like) – Z-statistics

  • tail ({'one', 'two'}, optional) – Whether p-values come from one-tailed or two-tailed test. Default is ‘two’.

Returns:

p – P-values

Return type:

array_like