growthAppr_byStrata: Computes the Growth Appropriation between two periods for...

Description Usage Arguments Value

View source: R/growthAppr_byStrata.R

Description

Computes the Growth Appropriation between two periods for equal-sized income strata/bins

Usage

1
2
3
4
5
6
7
8
growthAppr_byStrata(
  x0,
  x1,
  n_strata = 10,
  w0 = NULL,
  w1 = NULL,
  correct_for_negativeGrowth = T
)

Arguments

x0

A vector of incomes at time 0

x1

A vector of incomes at time 1

n_strata

A numeric value indicating how many bins will be created

w0

(optional) A vector of sample weights at time 0

w1

(optional) A vector of sample weights at time 1

correct_for_negativeGrowth

A logical value. Correct for negative growth. Default to TRUE.

Value

Returns a tibble with the following columns: - Strata: Number of the ordered income strata - Pop. Share: Population share at the strata - Mean 0: Mean income of the strata at time 0 - Mean 1: Mean income of the strata at time 1 - Growth Appropriation: Growth appropriation of the strata between times 0 and 1


antrologos/inequalityTools documentation built on May 23, 2021, 11:56 a.m.