Where \(\bar x\) is the observed mean, \(e\) is the expected value, \(s\) is the sample standard deviation, \(n\) is the sample size, and \(d_{eff}\) is Extra deff:
\[\begin{align} t = \sqrt{n/d_{eff}}\frac{\bar x - e}{s} \end{align}\]
where \(p = 2 \Pr(t_{n-1} \ge |t|)\) if \(\\bar x \ne e\) and NaN otherwise.