gd_estimate_distribution: Estimate distribution (grouped data)

View source: R/gd_estimate_distribution.R

gd_estimate_distributionR Documentation

Estimate distribution (grouped data)

Description

Estimate distribution (grouped data)

Usage

gd_estimate_distribution(
  welfare,
  population,
  gd_type,
  mean,
  povline,
  popshare = NULL
)

Arguments

welfare

numeric: Cumulative proportion of welfare held by that proportion of the population (Lorenz Curve).

population

numeric: Cumulative proportion of population.

gd_type

integer: Type of data distribution If gd_type = 1 population must be the cumulative proportion of population and welfare must be the cumulative proportion of income held by that proportion of the population (Lorenz curve). If gd_type = 2, population must be the proportion of population and welfare must be the proportion of income. If gd_type = 5, then population must be the Percentage of the population in a given interval of incomes, whereas welfare must be the mean income of that interval.

mean

numeric: Data mean

povline

numeric: Poverty line.

popshare

numeric: Share of population living below the poverty line. Optional.

Value

data.frame

Examples

welfare <- c(24.84, 35.8, 45.36, 55.1, 64.92, 77.08, 91.75, 110.64, 134.9,
167.76, 215.48, 261.66, 384.97)
population <- c(0.92, 2.47, 5.11, 7.9, 9.69, 15.24, 13.64, 16.99, 10, 9.78,
3.96, 1.81, 2.49)

gd_estimate_distribution(welfare = welfare,
population = population,
gd_type = 5,
mean = 109.9,
povline = 89)

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