Skip to content

matthieugomez/topdecompose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This package provides a command to decompose the growth of an average quantity in a top percentile (in particular, the average wealth). This implements the accountiong framework defined in my paper Decomposing the Growth of Top Wealth Shares.

topdecompose varname  [,  top(dummyvariable) save(filename) replace clear Detail]

where

  • varname is the variable to decompose
  • top is a dummy variable indicating whether the observation belongs to the top percentile or not
  • filename a filepath to save the output as a dataset. Alternatively, clear to clear the existing dataset with the output.
  • Detail provides more intermediary quantities (e.g. average quantity in subsets of individuals)

The dataset needs to be declared as panel data before the command (using tsset or xtsset)

Installation

net install topdecompose from("https://raw.githubusercontent.com/matthieugomez/topdecompose/master/")

If you have a version of Stata < 13, you need to install it manually

Click the "Download ZIP" button in the right column to download a zipfile.

Extract it into a folder (e.g. ~/SOMEFOLDER)

Run

net install topdecompose, from("~/SOMEFOLDER")

About

Decomposing the Growth of Top Wealth Shares

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published