OptionalallocationOptionalalphaOptionalalternativeOptionaldfDegrees of freedom for chi-square GOF / independence planning.
OptionaldirectionBranch for a two-sided effect search; not the alternative hypothesis.
OptionaleffectEffect size in the test's natural units: difference in means (z / t tests; with sigma),
alternative proportion (1 proportion; with p0) or second proportion (2 proportions; with p1),
maximum difference between group means (ANOVA; with sigma, groups), or the ratio σ/σ₀ (1 variance)
/ σ₁/σ₂ (2 variances). Omit to solve for it.
OptionalgroupsOne-way ANOVA: number of groups.
OptionalmaxUpper bound when solving for n (default 1e6).
OptionalnSample size per group. Omit to solve for it.
Optionalp01 proportion: hypothesized p₀. 2 proportions: first-group proportion p₁.
Optionalp1OptionalpowerTarget power. Omit to compute it.
OptionalsigmaStandard deviation for z / t / ANOVA (default 1 → effect in σ units).
n2 = ceil(n * allocation); two independent samples only. Default 1.