Dear Stata Users,
I have a panel dataset and I would like to identify marital changes (var marital).
Suppose that 1 represents single, 2 marriage and 4 divorce, I would like to create a unique indicator that
considers that the individual 1002352* had a transition from single to marriage AND, then, to divorce.
So far, I used the lagged operator because I was interested in just one transition and not in the subsequent one.
But I am not so sure on how to add the second change, Do you have any suggestion?
ID t marital
1002352* 1 1
1002352* 2 2
1002352* 3 4
1002352* 5 4
1002352* 6 4
1002352* 7 4
Thank you, Lydia
Related Posts with Indicator for more than one marital change
Multiple regressions into oneGood morning to everyone. I am working with IPUMS data to study some aspects about immigration. And …
Getting Predicted Values for RegressionsHi all, I have a dataset of about 800 observations with 19 variables. One of the variables is a dep…
Meaning of different code1. Create the dummies and estimate levelsof year, local(time) foreach t of local time { local y_rr =…
Plotting event study by monthArray Hi, I am trying to run and plot an event study, but my regression is not reporting any stati…
scatter plotshey there! im using stata 14 and want to create the scatter plots between the K (cutt-offs) and H,A,…
Subscribe to:
Post Comments (Atom)
0 Response to Indicator for more than one marital change
Post a Comment