View source: R/ts_br_norm_mean.R
ts_br_norm_mean | R Documentation |
Two Stage approach to Get Bounded Risk Point Estimation for the mean of normal random variables.
ts_br_norm_mean(data, A, k, w, pilot = FALSE, verbose = FALSE, na.rm = TRUE)
data |
The data for which to calculate the bounded risk point. |
A |
The loss function constant. |
k |
Controls whether the absolute error or squared error is used. K=1 uses absolute error, K=2 uses squared error. |
w |
The risk bound. |
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, the mean and the number of stages, and an indicator of if the criterion is 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_br_norm_mean(A=2, k=1, w=0.5, pilot=TRUE) # k=1 absolute error, k=2 squared error ## Not run: SLS <- rnorm(pilot_ss) ## End(Not run) SLS <- rnorm(100) ts_br_norm_mean(data=SLS, A=2, k=1, w=0.5, pilot=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.