power.prop: Statistical power for differences between proportions

Description Usage Arguments Value Author(s) References Examples

Description

This is an internal function. power.prop computes statistical power for differences between proportions.

Usage

1
power.prop(n, h = NULL, sig.level = 0.05, one.sided = FALSE, prop = NULL)

Arguments

n

a numeric vector (length(n) = 2) contains the sample size in each group

h

Cohen's h

sig.level

a numeric contains the significance level (default 0.05)

one.sided

nondirectional (one.sided = FALSE, default) or directional (one.sided = TRUE)

prop

...

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.6.2
power.prop(h=.4, n=c(100,100), sig.level=0.05)

rpsychi documentation built on May 1, 2019, 10:10 p.m.