PSS-Two-Var-Algorithm
Let
One-sided power:
Two-sided power
:upper percentile of the t distribution with n1+n2-2 degrees of freedom
F:the cumulative distribution function of the standard normal distribution
:distribution function of the F distribution with k1 and k2 degrees of freedom; k1 and k2 = n -1
:inverse CDF evaluated at C for a F distribution with k1 and k2 degrees of freedom
:significance level
Origin uses an iterative algorithm with the power equation. At each iteration,the power for a trial sample size are evaluated and iteration stops when the power evaluated reaches the values which corresponding to an integer sample size, and which is nearest to, yet greater than, the target value.