Hello,
I'm trying to re-create a table given in one of the technical reports on housing. The data set includes household level data on housing condition and other socio-economic parameters. The table that I want to recreate basically divides the households into decile groups based on monthly per capita consumption expenditure (MPCE). I tried different approaches including:
Method 1:
egen MPCErank= rank( MPCE ), unique
egen decile =cut(MPCErank), group(10)
Method 2:
sort MPCE
sumdist MPCE [aweight==weight], n(10)
But yet failed to recreate them. Please tell me where I'm going wrong.
Related Posts with Decile groups based on MPCE
cgmreg - storing the number of observationsI have a problem in pubIishing the estimation tables using esttab as I am unable to store the statis…
Measurement invariance testing: Identification constraintsHi there, this is my first post in the forum, I hope I do it correctly... I want to test for measur…
How STATA handles missing dataGood evening, I have a relatively straight forward question regarding STATA. I have been trying to f…
Collapse over two variablesHi I am trying to create a graph with time(by month and year) on the x and pricegal on the y. My goa…
int(runiform(1,499999)) stata 13Hello to all, do you have a idea of wich command to use to have the same result... In stata 15 gen …
Subscribe to:
Post Comments (Atom)
0 Response to Decile groups based on MPCE
Post a Comment