View source: R/seq_fwd_nexp_mean.R
seq_fwd_nexp_mean | R Documentation |
Purely Sequential approach to Get Fixed Width Confidence Interval for the mean of negative exponential random variables.
seq_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 <- seq_fwd_nexp_mean(alpha=0.05, d=0.2, gamma=1, pilot=TRUE) SLS <- rexp(pilot_ss, rate=1) seq_fwd_nexp_mean(data=SLS, d=0.2, alpha=0.05, pilot=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.