View source: R/ts_fwd_nexp_mean.R
ts_fwd_nexp_mean | R Documentation |
Two Stage approach to Get Fixed Width Confidence Interval for the mean of negative exponential random variables.
ts_fwd_nexp_mean( data, d, alpha, gamma, pilot = FALSE, verbose = FALSE, na.rm = TRUE )
data |
The data for which to calculate the confidence interval. A numeric vector. |
d |
Half of the confidence interval width, must be a non-zero positive value. |
alpha |
The significance level. A value between 0 and 1. |
gamma |
gamma |
pilot |
Should a pilot sample be generated. True/False value.
default value is |
verbose |
Should the criterion be printed. Default is |
na.rm |
This parameter controls whether NA values are removed from
the data prior to calculation. Default is |
The calculated confidence interval, the sample size, data mean, and an indicator of if the criterion was satisfied.
Bhargab Chattopadhyay Bhargab@iiitvadodara.ac.in, Neetu Shah 201451015@iiitvadodara.ac.in, Ken Kelley kkelley@nd.edu
Mukhopadhyay, N., \& de Silva, Basil M. (2009). Sequential Methods and Their Applications. New York: CRC Press.
pilot_ss <- ts_fwd_nexp_mean(alpha=0.01, d=0.5, gamma=1, pilot=TRUE) ## Not run: SLS <- rexp(pilot_ss, rate=1) ## End(Not run) SLS <- rexp(100, rate=1) ts_fwd_nexp_mean(data=SLS, d=0.5, alpha=0.01, pilot=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.