View source: R/compute_functions.R
compute_atkinson | R Documentation |
experimental Compute the Atkinson index with weights.
compute_atkinson(
file,
file_name,
variable,
epsilon,
weight = NULL,
na.rm = FALSE
)
file |
A LIS or LWS file. |
file_name |
The name of the LIS or LWS file. |
variable |
A string with the name of the variable for which Atkinson should be computed. |
epsilon |
A number with the inequality adversion parameter. Needs to be epsilon > 0. |
weight |
A string with the name of the variable in 'file' that should be used as sample weights. |
na.rm |
A boolean. Indicates if NAs should be ignored. Defaults to FALSE. |
A numeric vector with the gini index.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.