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
You can now play Oregon Trail on Statahttps://twitter.com/mcdroste/status/1321482111350677505 If Stata sales triple in the next few days,…
Help! Unexpected impact of controlling an omitted variableHi everyone, I'm estimating production function using firm-level panel data (6 years) to obtain fir…
option lc() not allowed \ option lcolor() not allowedDear all, Even though I found similar posts online, I still could not manage to fix this. The code …
Xtabond postestimation - export results to ExcelDear all, I estimate a dynamic panel model using xtabond command. Next I use xtabond postestimation…
Marginsplot with two regression equationsDear Members, I have two regression equations. After each regression, I run margins and marginsplot.…
Subscribe to:
Post Comments (Atom)
0 Response to Survey pointer to spouse without Mata
Post a Comment