Learn R Programming

staTools (version 0.1.0)

ddispl: Discrete Powerlaw Probability Mass Function

Description

Probability mass function for the discrete power law distribution with parameters xmin and alpha.

Usage

ddispl(x, xmin, alpha, log = FALSE)

Arguments

x
Vector of quantiles.
xmin
The lower bound of the powerlaw distribution.
alpha
The scaling parameter.
log
Logical, whether return log values. By default is set to FALSE.

Examples

Run this code
x = rdispl(n = 1e4, xmin = 10, alpha = 2.5)
ddispl(x, xmin = 10, alpha = 2.5, log = FALSE)

Run the code above in your browser using DataLab