ss.aipe.cv | R Documentation |
Determines the necessary sample size so that the expected confidence interval width
for the coefficient of variation will be sufficiently narrow, optionally with a desired degree of
certainty that the interval will not be wider than desired. The value of C.of.V
should be positive.
ss.aipe.cv(C.of.V = NULL, width = NULL, conf.level = 0.95,
degree.of.certainty = NULL, assurance=NULL, certainty=NULL,
mu = NULL, sigma = NULL, alpha.lower = NULL, alpha.upper = NULL,
Suppress.Statement = TRUE, sup.int.warns = TRUE, ...)
C.of.V |
population coefficient of variation on which the sample size procedure is based |
width |
desired (full) width of the confidence interval |
conf.level |
confidence interval coverage; 1-Type I error rate |
degree.of.certainty |
value with which confidence can be placed that describes the likelihood of obtaining a confidence interval less than the value specified (e.g., .80, .90, .95) |
assurance |
an alias for |
certainty |
an alias for |
mu |
population mean (specified with |
sigma |
population standard deviation (specified with |
alpha.lower |
Type I error for the lower confidence limit |
alpha.upper |
Type I error for the upper confidence limit |
Suppress.Statement |
Suppress a message restating the input specifications |
sup.int.warns |
suppress internal function warnings (e.g., warnings associated with |
... |
for modifying parameters of functions this function calls |
Returns the necessary sample size given the input specifications.
Ken Kelley (University of Notre Dame; KKelley@ND.Edu)
ss.aipe.cv.sensitivity
, cv
# Suppose one wishes to have a confidence interval with an expected width of .10
# for a 99% confidence interval when the population coefficient of variation is .25.
ss.aipe.cv(C.of.V=.1, width=.1, conf.level=.99)
# Ensuring that the confidence interval will be sufficiently narrow with a 99%
# certainty for the situation above.
ss.aipe.cv(C.of.V=.1, width=.1, conf.level=.99, degree.of.certainty=.99)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.