View source: R/seq_mr_nexp_mean.R
seq_mr_nexp_mean | R Documentation |
Purely Sequential approach to Get Minimum Risk Point Estimation for negative exponential random variables
seq_mr_nexp_mean( data, A, c, k, t, pilot = FALSE, verbose = FALSE, na.rm = TRUE )
data |
The data for which to calculate the minimum risk point. |
A |
The loss function constant. |
c |
The cost of unit sample. |
k |
Loss function index 1. |
t |
Loss function index 2. |
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 risk, the sample size, mean, standard deviation, 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, B. M. (2009). Sequential Methods and Their Applications. New York: CRC Press.
pilot_ss <- seq_mr_nexp_mean(A=500, c=0.01, k=1, t=2, pilot=TRUE) SLS <- rexp(pilot_ss, rate=1) seq_mr_nexp_mean(data=SLS, A=500, c=0.01, k=1, t=2, pilot=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.