decompose_population: Decompose population origin by percentile in a merged...

View source: R/merge-decomposition.R

decompose_populationR Documentation

Decompose population origin by percentile in a merged distribution

Description

Given an output of merge_dist and a list of fractiles, gives the population composition in terms of origin distribution for each bracket .

Usage

decompose_population(dist, p, ...)

Arguments

dist

An object of class gpinter_dist_merge.

p

A numeric vector of fractiles in [0, 1[.

...

Ignored.

Value

A data.frame with the following columns:

p

The fractiles defining the brackets.

share1

The population share of the first merged distribution.

share2

The population share of the second merged distribution.

...

The population share of the other merged distribution.

Author(s)

Thomas Blanchet, Juliette Fournier, Thomas Piketty


thomasblanchet/gpinter documentation built on Nov. 29, 2022, 4:32 a.m.