Statistical Analysis of Health Inequalities
The rineq
package provides functions to calculate the relative, generalized, and Erreygers corrected concentration index; plot Lorenz curves; and decompose health inequalities using (generalized) linear models, survival models, and regression and binary trees.
Concentration index
ci
Calculate the relative, generalized, or Erreygers corrected concentration index
correct_sign
Correct negative values in the health variable
Decomposition
contribution
Decompose the Relative Concentration Index into its components
rpart_ci
Recursive partitioning and regression trees using the concentration index
imp
Evaluate variable importance in rpart_ci()
trees
To download and install the latest development version from GitHub:
devtools::install_github("brechtdv/rineq")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.