Dear forum users,
I would like to create a variable containing the employment status of the partner of a person.
Each individual in my paneldataset has a unique personal identifier 'pid'. Furthermore, if an individual has a partner in the dataset, their partner can be identified by variable 'partnerid', which takes the pid value that corresponds to the individual's partner. A individual can have more than 1 partner and some do not have any partners. I can't find a way to generate a variable for the employment status of the partner, which should be a missing value if the person does not have a partner.
I already looked at: https://www.stata-journal.com/sjpdf....iclenum=dm0043 but do not understand how I can apply their tips to solve my problem.
Best,
Jakob
Related Posts with Employment status for partner
Three-way InteractionsI am working with following panel data linear regression model: y = f(x,y,z) + other control variabl…
Stata code for Ellison, Glaeser (1997) and Krugman (1991)Hi All, I am trying to calculate the regional specialization and industry concentration following E…
replacing missing values with a specific year observationHello everyone, I need some help in composing a code for replacing missing values with the value of …
Generating a financial year variable using nested loop Hi, My dataset has both 'year' and 'month' information for some variables. I want to generate a 'fi…
Add same extension to existing variable labelsI'm not sure how to phrase this question but I want to use all the existing variable labels but add …
Subscribe to:
Post Comments (Atom)
0 Response to Employment status for partner
Post a Comment