View source: R/sample_quantile_estimation.R
sample_quantile_estimation | R Documentation |
sample_quantile_estimation
returns the estimated quantiles for the chosen probabilities from the input sample.
This method uses the sample quantile method number 8 from the default quantile function.
sample_quantile_estimation(samp = NULL, probs = NULL, bootstrap_sims = NULL)
samp |
Sample of data to model |
probs |
Probabilities of interest to generate the max_k line |
bootstrap_sims |
Number of bootstrap simulations to estimate the quantiles |
Returns estimated quantiles for the chosen probabilities.
samp <- rnorm(1e3, mean = 100, sd = 10)
probs <- c(1-1e-1, 1-0.5e-1, 1-1e-2)
bootstrap_training_sims <- 100
estimated_quantiles <- sample_quantile_estimation(samp = samp,
probs = probs,
bootstrap_sims = bootstrap_training_sims)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.