gd_compute_dist_stats: Computes distributional statistics (grouped)

View source: R/gd_compute_dist_stats.R

gd_compute_dist_statsR Documentation

Computes distributional statistics (grouped)

Description

Compute distributional statistics for grouped data by selecting the best functional fit for the Lorenz curve (either beta or quadratic).

Usage

gd_compute_dist_stats(welfare, population, mean, p0 = 0.5)

Arguments

welfare

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

population

numeric: Cumulative proportion of population.

mean

numeric: Welfare mean.

p0

numeric: TO BE DOCUMENTED.

Value

list

Examples

# Compute distributional statistics
res <- wbpip:::gd_compute_dist_stats(
 welfare = grouped_data_ex2$welfare,
 population = grouped_data_ex2$weight,
 mean = 50)


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