Description Usage Arguments Examples
Takes a vector of counts and calculates its Gini coefficient then it generates a Monte Carlo distribution of Gini coefficients under the specified family (Poisson or nbinom) and compares the observed Gini with the MC confidence interval. There is an option to generate a plot of the values and critical region.
1 2 |
x |
A numeric or intenger vector of event counts. If
|
data |
A data frame. |
reps |
The number of Monte Carlo replicates |
keep_reps |
Logical option to keep the vector of Gini Index statistics for the Monte Carlo replications. |
family |
Family distribution for the Null Hypothesis. |
plots |
Logical indicating whether to generate a plot of the test. |
1 | mc_gini_test("extortions", data = testdata, plots = TRUE, family = "poisson")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.