Description Usage Arguments Examples
View source: R/victim_lorenz.R
A wrapper for a series of functions to generate Lorenz plots from vectors of counts of victimisation incidents. Includes option to include Expected counts under Poisson or Negative Binomial expected counts.
1 2 |
x |
a vector of counts or the name of a column of counts in data |
data |
a data frame |
family |
an option based on |
reps |
passes option of replicates to |
by_var |
the name of a factor variable in the data frame |
1 | victim_lorenz("bribes", data = testdata, family = "poisson")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.