I'm using the IPUMS extract of the CPS March Supplement. In their extract, the variables YEAR, SERIAL, and PERNUM together uniquely identify person records in each annual sample.
They also include a variable, SPLOC, that gives the PERNUM value of the person's spouse.
I would like to create a variable called SPEMPSTAT that gives the labor market status (EMPSTAT) of each person's spouse (if they have one). In other words, use the combination of YEAR, SERIAL, and SPLOC in the person's record as a pointer to another record's YEAR, SERIAL, and PERNUM combination.
I've seen some mention that this is possible with Mata, but I wanted to make sure there wasn't a way of doing this within Stata.
Related Posts with Survey pointer to spouse without Mata
Error last estimates not found.Hello I am trying to run a regression among 220 firms from 1998-2018 to predict a yearly beta value.…
How can I copy values for a variable to other observations within the same variable?Hello, I have a similar question as in https://www.statalist.org/forums/for...same-household which …
Creating Bar Graph with LineDear all, I was wondering if there is someone who can help me with regards to my bar graph. With th…
How to interpret results from xtreg difference in differencesHi- This is my first time posting. I have read a number of super helpful posts (thank you Clyde Sch…
Counting groups that have duplicate set of values within a variableThe structure of my data for this task includes two variables of interest: GroupID and Name: Grou…
Subscribe to:
Post Comments (Atom)
0 Response to Survey pointer to spouse without Mata
Post a Comment