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
Forecasting estimation with panel data.I try to do forecasting estimation with panel data. I want to estimate GINI under the impact of covi…
Fill the . values of duplicates based on two variablesDear Stata users, I am using Stata 17. Based on two variables Code: date & urbanname I have d…
Type of correlation used by factorHi, I've done a factor analysis using the default settings for the factor command: factor item1-item…
Obtaining a list of user-defined programsDear Statalisters, I would like to obtain a list of user-defined programs currently in memory (prog…
Export dataset to LaTeXDear Stata Users, I have a dataset below. I want to export the data to the latex as the following t…
Subscribe to:
Post Comments (Atom)
0 Response to Panel Data: Only recognise first marital status change
Post a Comment