Learn R Programming

rpsychi (version 0.3)

samplesize.rsq: Sample size estimation in the F tests of variance proportions

Description

samplesize.rsq determines the sample size, when specified the effect size to be detected, desired statistical power, and significance level.

Usage

samplesize.rsq(delta, n.ind, power = 0.8, sig.level = 0.05)

Arguments

delta
a numeric contains the effect size (Cohen's $R^2$) to be detected
n.ind
a numeric contains the number of independent variables
power
a numeric contains the desired statistical power (default 0.80)
sig.level
a numeric contains the significance level (default 0.05)

Value

  • Return a numeric containing the appropriate sample size.

encoding

UTF-8

References

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

See Also

multreg, multreg.second

Examples

Run this code
##Cohen (1988) ex.9.18
samplesize.rsq(delta=.16, n.ind=20, power = .90, sig.level=.05)

Run the code above in your browser using DataLab