Learn R Programming

rineq

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, and survival models.

Available functions

Concentration index - main functions

FunctionDescription
ciCalculate the relative, generalized, or Erreygers corrected concentration index
contributionDecompose the Relative Concentration Index into its components

Install

Install the version on CRAN:

install.packages("rineq")

or download and install the latest development version from GitHub using devtools:

devtools::install_github("kdevkdev/rineq")

Copy Link

Version

Install

install.packages('rineq')

Monthly Downloads

181

Version

0.3.0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Kaspar Meili

Last Published

January 13th, 2025

Functions in rineq (0.3.0)

print.decomposition

Print function for decomposition objects.
confint.hci

Confidence intervals for hci objects
ci

Calculates different type of concentration indexes
contribution

Function to decompose the Relative Concentration Index into its components
correct_sign

Corrects negative values in the health variable
housing

Artificial example data on housing conditions
decomposition

Decomposition analysis
print.hci

Prints an hci object.
plot.decomposition

Plots a barplot of the contribution percentages in a decomposition object. Sets custom plot margins and uses the graphical parameters xlim, horiz, las and xlab which therefore cannot be customized
var_wt

Calculates the weighted variance
plot.hci

Plots the concentration curve for an hci object.
summary.decomposition

Prints and returns a summary for a decomposition object.
rank_gwt

Generalized weighted ranking function
summary.hci

Prints the a summary of the concentration index object hci
rank_wt

Calculates the weighted rank