prob_hn | R Documentation |
prob_hn replicates the ProbHn function from chapter 2 of Mukhopadhyay and de Silva (2009).
prob_hn(alpha, n, c_min = 0, c_max = 10, by = 0.04, dec = 4)
alpha |
The selected significance level. |
n |
The sample size. |
c_min |
The minimum value of c to try in the calulcations, default = 0. |
c_max |
The maximum value of c to try in the calculations, default = 10. |
by |
The increment of the sequence between c_min and c_max, default = 0.04. |
dec |
The number of decimal places to use when removing probabilities of 0 and 1 from the ends of the results. |
This function computes the probability of K(n) > c*sigma for given alpha and sample size.
A sequence of values of c and the corresponding probabilities.
Bhargab Chattopadhyay Bhargab@iiitvadodara.ac.in, Ken Kelley kkelley@nd.edu
Mukhopadhyay, N., \& de Silva, B. M. (2009). Sequential Methods and Their Applications. New York: CRC Press.
alpha = 0.05 n = 20 vals <- prob_hn(alpha = alpha, n = n) vals
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.