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
Error = { required r(100)Greetings Please attached is my do file that I am trying to use to test associations between my expl…
Global macro before stringsDear, I would like to generate a new variable whose name includes a global macro in the middle of s…
ivreg2 and ivregress provide different resultsDear, I have used two commands, ivreg2 and ivregress, to estimate the same model. errors are assume…
Network meta-analysisHello all, I'm trying to run network meta-analysis in Stata and I'm running into a problem that mig…
Country fixed effects and dummy in IV regressionHello everyone, I want to use instrumental Variable regression and include country fixed effects in…
Subscribe to:
Post Comments (Atom)
0 Response to Decile groups based on MPCE
Post a Comment