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
Leads and lags in a DID: "time variable not set" errorHi everyone, I am trying to run a DID where I have an interaction variable that I would like to see…
How to estimates multiple-fixed effects in panel data with severe million observations?Hello, Statalisters! I have a panel data set and I want to estimates, at first separately, by fixed…
Why is my panel unbalanced?Hi, can someone help me figure out why my panel is unbalanced? Array I have every month, so no gaps…
Finding appropriate model for panel data analysisHi all, am trying to analyze the effect on inheritance receipt on private pension savings of house…
sample size using sample error formula in STATAHi All, I want to know the STATA command to calculate sample size using sample error formula. n=[(z_…
Subscribe to:
Post Comments (Atom)
0 Response to Survey pointer to spouse without Mata
Post a Comment