tightness | R Documentation |
tightness
function used to minimized the tightness as a function of the value of k
tightness(samp = NULL, prob = NULL, quant = NULL, k = NULL)
samp |
Sample of data to model |
prob |
Probability of interest |
quant |
Quantile of interest |
k |
value of k to check tightness |
Returns the squared difference between the tightness and 1
samp <- rnorm(1e3, mean = 100, sd = 10)
prob <- c(1-1e-2)
k <- 1:100
quant <- qnorm(p = prob, mean = 100, sd = 10)
tightness(samp = samp, prob = prob, quant = quant, k = k)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.