size.ci.stdmean.ps: Sample size for a paired-samples standardized mean difference...

View source: R/statpsych1.R

size.ci.stdmean.psR Documentation

Sample size for a paired-samples standardized mean difference confidence interval

Description

Computes the sample size required to estimate two types of population standardized mean differences (unweighted standardizer and single group standardizer) with desired confidence interval precision in a paired-samples design. Set the standardized mean difference planning value to the largest value within a plausible range, and set the Pearson correlation planning value to the smallest value within a plausible range for a conservatively large sample size.

Usage

size.ci.stdmean.ps(alpha, d, cor, w)

Arguments

alpha

alpha level for 1-alpha confidence

d

planning value of standardized mean difference

cor

planning value of correlation between measurements

w

desired confidence interval width

Value

Returns the required sample size for each standardizer

References

\insertRef

Bonett2009statpsych

Examples

size.ci.stdmean.ps(.05, 1, .65, .6)

# Should return:
#                            Sample Size
# Unweighted standardizer:            46
# Single group standardizer:          52
 


statpsych documentation built on Sept. 11, 2024, 7:42 p.m.