View source: R/find_n_ksigma.R
find_n_ksigma | R Documentation |
Find required sample size for "k-sigma sample interval" (i.e., parametric sample interval applied to a Normal distribution) to achieve targeted reliability using bisection algorithm
find_n_ksigma( proximity_range, reliability, k = NULL, search_interval = c(3, 500), n_sim = 1e+06, tolerance = 1e-05, plot = FALSE, verbose = FALSE, seed = NULL )
proximity_range |
Range within which sample coverage should fall with pre-specified
|
reliability |
Targeted probability that individual coverage of parametric sample interval
applied to a Normal distribution falls within |
k |
Standard deviation multiplier for parametric sample interval applied to Normal
distribution (typically 2 or 3). If |
search_interval |
Initial interval of sample sizes for bisection algorithm. Default is c(3, 500). |
n_sim |
Number of simulation iterations used to estimate |
tolerance |
Threshold for difference between targeted and estimated |
plot |
If |
verbose |
If |
seed |
Randomization seed. Defaults to |
A list with the following elements:
The estimated sample size required to achieve target reliability.
If plot
is TRUE
, the plot object.
find_n_ksigma( proximity_range = c(0.93, 0.97), reliability = 0.7, k = 2 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.