Hello,
I have a dataset with a large number of observations from a panel survey over the course of several months. Within that data source I have these variables given to me directly:
personnum - A unique person number for each person in the household
personnumofmom - the person number of a person's mother
personnumofdad - the person number of a person's father
age - The age of the person
currenteducationlevel - The education level of the person (1 = not high school graduate, 2 = high school exactly, 3 = some higher ed but not a bachelor's degree, 4 = at least a bachelor's degree)
I have created these variables (and many more):
personid - a unique identifier for each person across ALL of the respondents of the survey.
familyid - a unique identifier for each family, only made up of people who live together, within a household which can be comprised of multiple families
householdid - a unique identifier for each household
I need to create an indicator variable of whether a person's dad lives in the same household as they do.
I also need to create a variable which attaches the current education level of a person's oldest child to their record.
I am not sure how to go about this. It seems like there needs to be some complicated sorting involved, and I am not sure where to start, honestly.
I have a dataset with a large number of observations from a panel survey over the course of several months. Within that data source I have these variables given to me directly:
personnum - A unique person number for each person in the household
personnumofmom - the person number of a person's mother
personnumofdad - the person number of a person's father
age - The age of the person
currenteducationlevel - The education level of the person (1 = not high school graduate, 2 = high school exactly, 3 = some higher ed but not a bachelor's degree, 4 = at least a bachelor's degree)
I have created these variables (and many more):
personid - a unique identifier for each person across ALL of the respondents of the survey.
familyid - a unique identifier for each family, only made up of people who live together, within a household which can be comprised of multiple families
householdid - a unique identifier for each household
I need to create an indicator variable of whether a person's dad lives in the same household as they do.
I also need to create a variable which attaches the current education level of a person's oldest child to their record.
I am not sure how to go about this. It seems like there needs to be some complicated sorting involved, and I am not sure where to start, honestly.
Comment