rPiecewisePareto | R Documentation |
Generates random deviates of a piecewise Pareto distribution
rPiecewisePareto(
n,
t,
alpha,
truncation = NULL,
truncation_type = "lp",
scale_pieces = NULL
)
n |
Numeric. Number of simulations |
t |
Numeric vector. Thresholds of the piecewise Pareto distribution. |
alpha |
Numeric vector. |
truncation |
Numeric. If |
truncation_type |
Character. If |
scale_pieces |
Numeric vector. If not |
A vector of n
samples from the (truncated) piecewise Pareto distribution with parameter vectors t
and alpha
t <- c(1000, 2000, 3000)
alpha <- c(1, 1.5, 2)
rPiecewisePareto(100, t, alpha)
rPiecewisePareto(100, t, alpha, truncation = 5000)
rPiecewisePareto(100, t, alpha, truncation = 5000, truncation_type = "lp")
rPiecewisePareto(100, t, alpha, truncation = 5000, truncation_type = "wd")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.