Learn R Programming

RESTK (version 1.0.1)

tightness: Tightness function

Description

tightness function used to minimized the tightness as a function of the value of k

Usage

tightness(samp = NULL, prob = NULL, quant = NULL, k = NULL)

Value

Returns the squared difference between the tightness and 1

Arguments

samp

Sample of data to model

prob

Probability of interest

quant

Quantile of interest

k

value of k to check tightness

Examples

Run this code
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)

Run the code above in your browser using DataLab