rGenPareto | R Documentation |
Generates random deviates of a generalized Pareto distribution
rGenPareto(n, t, alpha_ini, alpha_tail, truncation = NULL)
n |
Numeric. Number of observations. |
t |
Numeric vector. Thresholds of the generalized Pareto distributions |
alpha_ini |
Numeric vector. Initial Pareto alphas of the generalized Pareto distributions. |
alpha_tail |
Numeric vector. Tail Pareto alphas of the generalized Pareto distributions. |
truncation |
NULL or Numeric vector. If |
A vector of n
samples from the (truncated) generalized Pareto distribution with parameters t
, alpha_ini
and alpha_tail
rGenPareto(100, 1000, 2, 3)
rGenPareto(100, 1000, 2, 3, truncation = 2000)
rGenPareto(100, t = c(1, 10, 100, 1000), alpha_ini = 1, alpha_tail = c(2, 5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.