Learn R Programming

statpsych (version 1.8.0)

size.ci.cv: Sample size for a coefficient of variation

Description

Computes an approximate sample size required to estimate a population coefficient of variation (CV) with desired confidence interval precision. Set the CV planning value to the largest value within a plausible range for a conservatively large sample size.

Usage

size.ci.cv(alpha, CV, w)

Value

Returns the required sample size

Arguments

alpha

alpha level for 1-alpha confidence

CV

planning value of coefficient of variation

w

desired confidence interval width

Examples

Run this code
size.ci.cv(.05, .25, .10)

# Should return:
# Sample size
#          60
 

Run the code above in your browser using DataLab