Description Usage Arguments Value
A function that estimates a Gini coefficient using a Monte Carlo simulation
of a Poisson process. It uses the Gini
function from the
ineq
package.
1 |
x |
a vector of counts that is to be simulated, or a mean event rate representing the distribution to be simulated. x can be a table or a dataframe with a distribution, instead of the whole vector. |
n |
a number representing how many observations should be generated in
each replicate. Defaults to |
reps |
number of replicates to generate, defaults to 99. |
mean |
logical idicating whether the estimate reported ought to be the mean or median of the simulated estimates. Defaults to TRUE (i.e. the mean) |
conf.level |
the alpha value of the confidence interval; defaults to 0.95. Only accepts values between 0 and 1, exclusive. |
A list of Gmc
class, number of replictes, type of estimate (mean or
median), the simulated distributions and their Gini coefficients.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.