power.t: Statistical power for the t test for means

Description Usage Arguments Value Author(s) References Examples

View source: R/power.t.R

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
[email protected]

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)

rpsychi documentation built on May 29, 2017, 12:57 p.m.