compare_conv_distributions: Compares paretoconv with poweRlaw distributions

Description Usage Arguments Examples

Description

This function extends directly from the poweRlaw function of the same name, and compares a discrete power law distribution from the poweRlaw package with an equivalent convoluted distribution generated by paretoconv.

Usage

1

Arguments

d1

Discrete power law distribution of class displ from the package poweRlaw.

d2

Equivalent convoluted values for the probability density function obtained from paretoconv (..., cdf = FALSE)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
data ('native_american', package = 'poweRlaw')
m1 <- displ$new(native_american$Cas)
m1$setXmin (3)
m1$setPars (estimate_pars(m1))
x <- sort (unique (native_american$Cas))
y <- paretoconv (x = x, a = m1$getPars (), x0 = 3, n = 2,
cdf = FALSE, quiet = FALSE)
compare_conv_distributions (m1, y)

## End(Not run)

mpadge/paretoconv documentation built on March 9, 2020, 9:54 p.m.