lorenz: Lorenz curve

Description Usage Arguments Value

View source: R/lorenz.R

Description

Compute the coordinates of the Lorenz curve for the distribution of code z, using weights w. If w is not given, the unwweighted Lorenz curve is computed.

Usage

1
lorenz(z, w)

Arguments

z

a numerical vector.

w

a numerical vector with the same length as z.

Value

a [tibble][tibble::tibble-package] with the coordinates of the Lorenz curve.


jcpernias/ec1047 documentation built on Nov. 19, 2020, 2:33 a.m.