lorenz_alt: lorenz_alt

View source: R/lorenz_alt.R

lorenz_altR Documentation

lorenz_alt

Description

Given a vector of weights and welfare, this functions computes the Lorenz curve and several other related indicators.

Usage

lorenz_alt(welfare, weight, nbins = NULL, na.rm = FALSE)

Arguments

welfare

numeric: A vector of income or consumption values.

weight

numeric: A vector of weights.

nbins

numeric: number of points on the Lorenz curve.

na.rm

logical: Set to TRUE to remove missing.

Value

data.table

Examples

wbpip:::lorenz_alt(welfare = 1:2000, weight = rep(1, 2000))

PIP-Technical-Team/wbpip documentation built on Nov. 29, 2024, 6:57 a.m.