17.9.10.2 Algorithms (PSS: One-Sample Poisson Rate Test)
Power
One-sided power:\(H_0:\lambda\le \lambda_0\)
\[Power =1-F\left(\frac{\lambda_0-\lambda_1+z_{\alpha }\sqrt{\frac{\lambda_0}{nT}}}{\sqrt{\frac{\lambda}{nT}}}\right)\]
One-sided power:\(H_0:\lambda\ge \lambda_0\)
\[Power =F\left(\frac{\lambda_0-\lambda_1-z_{\alpha }\sqrt{\frac{\lambda_0}{nT}}}{\sqrt{\frac{\lambda}{nT}}}\right)\]
Two-sided power: \(H_0: \lambda=\lambda_0\!\)
\[Power =1-F\left(\frac{\lambda_0-\lambda_1+z_{\frac{\alpha}{2}}\sqrt{\frac{\lambda_0}{nT}}}{\sqrt{\frac{\lambda}{nT}}}\right)+F\left(\frac{\lambda_0-\lambda_1-z_{\frac{\alpha}{2} }\sqrt{\frac{\lambda_0}{nT} }}{\sqrt{\frac{\lambda}{nT}}}\right)\]
\(n\): Sample size
\(\lambda\): The true population rate
\(\lambda_0\): The null rate
\(\lambda_1\): The alternative rate
\(z_{\alpha }\): The \(\alpha\)-level upper critical value of Normal distribution
\(z_{\frac{\alpha}{2}} \): The \(\frac{\alpha}{2}\)-level two-side critical value of Normal distribution
\(F\): The cumulative distribution function of the standard normal distribution
\(T\): Exposure
Sample Size
Origin uses an iterative algorithm with the power equation. At each iteration, the power is evaluated for a candidate sample size. The iteration stops when the computed power reaches the target value. The reported sample size is then the smallest integer greater than or equal to this value (i.e., the nearest larger integer).