rPiecewisePareto {Pareto} | R Documentation |
Simulation of the Piecewise Pareto Distribution
Description
Generates random deviates of a piecewise Pareto distribution
Usage
rPiecewisePareto(
n,
t,
alpha,
truncation = NULL,
truncation_type = "lp",
scale_pieces = NULL
)
Arguments
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 |
Value
A vector of n
samples from the (truncated) piecewise Pareto distribution with parameter vectors t
and alpha
Examples
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")