rPareto: Simulation of the Pareto Distribution

View source: R/Functions.R

rParetoR Documentation

Simulation of the Pareto Distribution

Description

Generates random deviates of a Pareto distribution

Usage

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

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 April 18, 2023, 9:10 a.m.