Hello!
I have a data set as shown below. I would like to only analyse the change in behaviour the year before person was widowed, and the year after the person was widowed and remains as a widow (i.e. not remarried in the 2nd consecutive year but can be remarried after 2 years of becoming a widow although after the 2 years, this will not be of interest to me).
The id below was only widowed for one recorded time period and was remarried in the next recorded time period and therefore, i will not be able to use an id like this.
Array
Therefore, how do I only keep variables whose marital status changes from married to widowed and remains as widowed for at least 2 consecutive years?
Thank you,
Sarah.
Related Posts with Panel Data: Only recognise first marital status change
How to define date from 2000 in StataDear all, I need to calculate age using date of birth (dob) and survey submission date (end_date). …
Esttab with longtable optionI am exporting a regression table to LaTeX using the community contributed esttab command with longt…
Subtract number and character separately from a string variableI have a string variable (Size) that contains numbers and characters. I want to subtract number and …
How to flag observations that have a certain charateristic in one round but do not have that characteristic in any of the subsequent rounds?Hi everyone, Please consider the following data Code: * Example generated by -dataex-. To install: …
How to calculate OLS R-square from FE model estimationHi all, The FE model estimates R-squares corresponding to: within, between and overall equations. H…
Subscribe to:
Post Comments (Atom)
0 Response to Panel Data: Only recognise first marital status change
Post a Comment