Hi all,
I am trying to do Theil decomposition using the STATA module “ineqdeco", but I am not sure how to exactly use the syntax for my situation. I have done some readings but could not find enough tutorials or examples of how to use ineqdeco, so could someone kindly answer my questions in details?
In my research, there are three regions, east, central and north, and in each region, there are some states. I have the population and average income data for each state, and I want to decompose income inequality within and between the regions.
The syntax is ineqdeco varname [weights] [if exp] [in range] [, bygroup(groupvar) welfare summarize ].
My questions are: What my command should be like? Should the "varname" be total income or average income of each state? Does "weights" mean the number of population in each state? Could someone explain the full syntax for me? I would appreciate it if you can also provide some examples or tutorial resources.
I wrote the following command (I am not sure if it is correct):
ineqdeco incomepercapita [w=population] if year==2015,by(region_n)
Thank you in advance,
Yang
I am trying to do Theil decomposition using the STATA module “ineqdeco", but I am not sure how to exactly use the syntax for my situation. I have done some readings but could not find enough tutorials or examples of how to use ineqdeco, so could someone kindly answer my questions in details?
In my research, there are three regions, east, central and north, and in each region, there are some states. I have the population and average income data for each state, and I want to decompose income inequality within and between the regions.
The syntax is ineqdeco varname [weights] [if exp] [in range] [, bygroup(groupvar) welfare summarize ].
My questions are: What my command should be like? Should the "varname" be total income or average income of each state? Does "weights" mean the number of population in each state? Could someone explain the full syntax for me? I would appreciate it if you can also provide some examples or tutorial resources.
I wrote the following command (I am not sure if it is correct):
ineqdeco incomepercapita [w=population] if year==2015,by(region_n)
Thank you in advance,
Yang
Comment