rPareto: Simulation of the Pareto Distribution

Description Usage Arguments Value Examples

View source: R/Functions.R

Description

Generates random deviates of a Pareto distribution

Usage

1
rPareto(n, t, alpha, truncation = NULL)

Arguments

n

Numeric. Number of observations.

t

Numeric vector. Thresholds of the Pareto distributions

alpha

Numeric vector. Pareto alphas of the Pareto distributions.

truncation

NULL or Numeric vector. If truncation is not NULL and truncation > t, then the Pareto distribution is truncated at truncation (resampled Pareto)

Value

A vector of n samples from the (truncated) Pareto distribution with parameters t and alpha

Examples

1
2
3
rPareto(100, 1000, 2)
rPareto(100, 1000, 2, truncation = 2000)
rPareto(100, t = c(1, 10, 100, 1000, 10000), alpha = c(1, 2, 4, 8, 16))

Pareto documentation built on March 3, 2021, 5:07 p.m.