Performs sensitivity analysis for sample size determination for the coefficient of variation given a population coefficient of variation (or population mean and standard deviation) and goals for the sample size procedure. Allows one to determine the effect of being wrong when estimating the population coefficient of variation in terms of the width of the obtained (two-sided) confidence intervals.
1 2 3 4 |
True.C.of.V |
population coefficient of variation |
Estimated.C.of.V |
estimated coefficient of variation |
width |
desired confidence interval width |
degree.of.certainty |
parameter to ensure confidence interval width with a specified degree of certainty (must be NULL or between zero and unity) |
assurance |
the alias for |
certainty |
an alias for |
mean |
Some arbitrary value that the simulation uses to generate data (the variance of the data is determined by the mean and the coefficient of variation) |
Specified.N |
selected sample size to use in order to determine distributional properties of at a given value of sample size (not used with |
conf.level |
the desired degree of confidence (i.e., 1-Type I error rate). |
G |
number of generations (i.e., replications) of the simulation |
print.iter |
to print the current value of the iterations |
For sensitivity analysis when planning sample size given the desire to obtain narrow confidence intervals
for the population coefficient of variation. Given a population value and an estimated value, one can determine
the effects of incorrectly specifying the population coefficient of variation (True.C.of.V
) on the
obtained widths of the confidence intervals. Also, one can evaluate the percent of the confidence intervals
that are less than the desired width (especially when modifying the degree.of.certainty
parameter); see ss.aipe.cv
)
Alternatively, one can specify Specified.N
to determine the results at a particular sample size (when doing this Estimated.C.of.V
cannot be specified).
Data.from.Simulation |
list of the results in matrix form |
Specifications |
specification of the function |
Summary.of.Results |
summary measures of some important descriptive statistics |
Returns three lists, where each list has multiple components.
Ken Kelley (University of Notre Dame; KKelley@ND.Edu)
cv
, ss.aipe.cv
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.