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
Why doesn't clustering change anything?Hi all, I have panel data xtset across 3 waves of children's weight and parents employment status, …
Creating variables out of duplicatesHi, as this is my first post, I hope I meet all the criteria. I am using a large panel data set on a…
How to drop a group of observation if at least one of them present a characteristicHi Statalist I'm analysing a household dataset. I'm interested in performing a command only if at …
Confusion about -xttobit-Hello Everyone, I'm using panel data and tobit regression to examine whether there would be a bette…
Marginal effects on predicted marginal probability after mvprobitHi! I ran a multivariate probit regression on 3 binary dependent variables using Capellari and Jenki…
Subscribe to:
Post Comments (Atom)
0 Response to Indicator for more than one marital change
Post a Comment