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
graph x-axis not legibleI used the code below to generate the attached plot but the values on the x-axis are not legible. Ki…
Accessing Files Created within SubprogramI am writing a Stata .ado program that performs the same subroutine many times. As such, I would lik…
Color for figure: twoway (tsline)Hi all, I am making a figure and I would like to differentiate between colors. Specifically, I want…
Formatting datetime from one format to another in same variableHello everyone! I am facing some issues with my timestamp variable. The data that I have received f…
How to weight the Gini coefficient decomposition?hi all, i want the Gini coefficient decomposition in Lerman-Yitzhaki's method. but "descogini" does…
Subscribe to:
Post Comments (Atom)
0 Response to Employment status for partner
Post a Comment