Learn R Programming

staTools (version 0.1.0)

rdispl: Discrete Powerlaw Random Generator

Description

Random generator of discrete power law distribution with parameters xmin and alpha.

Usage

rdispl(n, xmin, alpha, xmax = 1e+05)

Arguments

n
Number of observations.
xmin
The lower bound of the powerlaw distribution.
alpha
The scaling parameter.
xmax
The maximum value generated.

Examples

Run this code
x = rdispl(n = 1e4, xmin = 10, alpha = 2.5, xmax = 1e5)

Run the code above in your browser using DataLab