dPiecewisePareto | R Documentation |
Calculates the density function of the piecewise Pareto distribution
dPiecewisePareto(x, t, alpha, truncation = NULL, truncation_type = "lp")
x |
Numeric. The function evaluates the density at |
t |
Numeric vector. Thresholds of the piecewise Pareto distribution. |
alpha |
Numeric vector. |
truncation |
Numeric. If truncation is not NULL and truncation > t, then the Pareto distribution is truncated at truncation. |
truncation_type |
Character. If |
Density function of the piecewise Pareto distribution with parameter vectors t
and alpha
evaluated at x
t <- c(1000, 2000, 3000)
alpha <- c(1, 1.5, 2)
x <- 0:10 * 1000
dPiecewisePareto(x, t, alpha)
dPiecewisePareto(x, t, alpha, truncation = 5000, truncation_type = "lp")
dPiecewisePareto(x, 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.