Description Usage Arguments Examples
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
.
1 | compare_conv_distributions(d1, d2)
|
d1 |
Discrete power law distribution of class |
d2 |
Equivalent convoluted values for the probability density function
obtained from |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.