Description Usage Arguments Value
View source: R/growthAppr_byStrata.R
Computes the Growth Appropriation between two periods for equal-sized income strata/bins
| 1 2 3 4 5 6 7 8 | growthAppr_byStrata(
  x0,
  x1,
  n_strata = 10,
  w0 = NULL,
  w1 = NULL,
  correct_for_negativeGrowth = T
)
 | 
| 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. | 
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.