Statistical power for the t test for means

Description

This is an internal function. power.t computes statistical power for the t test for means.

Usage

1
power.t(n1, n2, delta, sig.level = 0.05)

Arguments

n1

a numeric contains the sample size in group 1

n2

a numeric contains the sample size in group 2

delta

Cohen's d

sig.level

a numeric contains the significance level (default 0.05)

Value

Return a numeric containing the statistical power.

Author(s)

Yasuyuki Okumura
Department of Social Psychiatry,
National Institute of Mental Health,
National Center of Neurology and Psychiatry
yokumura@blue.zero.jp

References

Cohen J (1988). Statistical power analysis for the behavioral sciences (2nd ed). Hillsdale, NJ: Erlbaum.

Examples

1
2
##Cohen (1988) ex.2.1
power.t(sig.level=.05, delta=0.5, n1=30, n2=30)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.