Generate household-level variable, calculated at neighborhood-level
Hi all,
I have tabulated the ratio of total males to females for each neighborhood (which, in turn belongs to a province). The problem is that the dataset is household-level and the last two are only identifier variables, so I am not being able to generate the ratio household-wise. I want to assign the tabulated neighborhood ratio to each household in that particular neighborhood (and province) [ so every household in a particular locality will have the same value of the ratio]. But I can't think of a way to do this, except manually.
That's probably because I am relatively inexperienced with stata.
Looking forward to suggestions.
Thanks,
Rani
Hi all,
I have tabulated the ratio of total males to females for each neighborhood (which, in turn belongs to a province). The problem is that the dataset is household-level and the last two are only identifier variables, so I am not being able to generate the ratio household-wise. I want to assign the tabulated neighborhood ratio to each household in that particular neighborhood (and province) [ so every household in a particular locality will have the same value of the ratio]. But I can't think of a way to do this, except manually.
That's probably because I am relatively inexperienced with stata.
Looking forward to suggestions.
Thanks,
Rani
Comment