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
Calcule Overlap between two variablesI need to calculate the overlap of two variables (time series). I saw that in R, the command is "cal…
Saving F stat after RegressionHi All, I have data that resembles the following: Code: * Example generated by -dataex-. To in…
State Panel data - generating a year treatment variable with a month component?I have annual state panel data. Each state implemented a state reform at different times (year). I h…
Sample size for cox proportional hazards model with multiple covariatesThis is my first time using power cox, and I would like confirmation of my code. HTML Code: power…
Deciding between RE and FEI have a theoretical question concerning usage of the FE model for panel data regression. I'm curre…
Subscribe to:
Post Comments (Atom)
0 Response to Panel Data: Only recognise first marital status change
Post a Comment