Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

generate_pareto

Generating data from a Pareto Distribution.


Description

This function is able to generate random Pareto distributed data with the specified shape and scale parameters. The function has been written to be similar in type to the popular runif and rexp type of functions for generating data from a particular distribution.

Usage

generate_pareto(sample_size, shape, scale)

Arguments

sample_size

number of observations

shape

shape parameter

scale

scale parameter

Value

Vector of Pareto distributed data of sample size sample_size with shape parameter shape and scale parameter scale.

Examples

generate_pareto(10000, 5, 2)
generate_pareto(100, 15, 6)

ptsuite

Tail Index Estimation for Power Law Distributions

v1.0.0
GPL-3
Authors
Ranjiva Munasinghe [aut], Pathum Kossinna [cre, aut], Dovini Jayasinghe [aut], Dilanka Wijeratne [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.