Hello all,
I would like to calculate certain characteristics (household size, other earners in the household, per capita household income) at the household level in certain sectors in the economy.
However, I am having two problems.
Calculating household size
Key Variables: uqnr (unique household identifier)
personnr (unique person identifier)
Now using the advice in this thread (http://www.statalist.org/forums/foru...survey-dataset) I did the following:
However, what it is doing is calculating the same member multiple times (i.e. household member no. 2 is being counted more than once). This is due to the nature of the data, which is a rotating panel survey (e.g. Wave 1 = 100 new people, Wave 2 = 75 from Wave 1 +25 new people, Wave 3 = 50 from Wave 2 + 50 new people etc.).
Question: How do I go about creating the correct household size - obviously I want the "personnr" value to be unique within the household (uqnr).
Calculating other earners in the household
Key Variables: unqr (unique household identifier)
personnr (unique person identifier)
status (1=employed, 2=unemployed)
Basically, I'd like investigate how many people are earning wages (wages > 0) in households where a person is earning a wage in a "minimum wage" sector. I've already identified the various sectors (variable "secdetcat", ranging in values from 1-8).
So I guess the first step would be to identify households where there is an earner in a minimum wage sector.
Second step - identify other earners in the household. How do I go about the second step?
Regards
I would like to calculate certain characteristics (household size, other earners in the household, per capita household income) at the household level in certain sectors in the economy.
However, I am having two problems.
Calculating household size
Key Variables: uqnr (unique household identifier)
personnr (unique person identifier)
Now using the advice in this thread (http://www.statalist.org/forums/foru...survey-dataset) I did the following:
Code:
sort uqnr personnr by uqnr: generate hhsize=_N
Question: How do I go about creating the correct household size - obviously I want the "personnr" value to be unique within the household (uqnr).
Calculating other earners in the household
Key Variables: unqr (unique household identifier)
personnr (unique person identifier)
status (1=employed, 2=unemployed)
Basically, I'd like investigate how many people are earning wages (wages > 0) in households where a person is earning a wage in a "minimum wage" sector. I've already identified the various sectors (variable "secdetcat", ranging in values from 1-8).
So I guess the first step would be to identify households where there is an earner in a minimum wage sector.
Second step - identify other earners in the household. How do I go about the second step?
Regards
Comment