Description Usage Arguments Value Examples
View source: R/par_sample.R View source: R/tmptools.R
Extracts a Pareto sample.
1 | par_sample(lambda)
|
lambda |
An |
A Pareto sample of size n
from a population of size N
.
1 2 3 4 5 6 | N <- 100
n <- 10
set.seed(42)
x <- runif(N)
pik <- n*x/sum(x)
par_sample(pik)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.