I have unbalanced panel data of 600000 plus observations. I have created my Dependent Variable as binary (1 for self employed) and (0 for any other occupational status). Then I am interested to see how many changes are their like how many people have changed their occupational status in the dataset. In this regards when I created a change variable using command ( replace cos= se[_n]- se[_n-1] ), it is also reporting the change when the person id is changed. In simple my question is how I can adjust stata to record the change with same persons ID. Please guide me. Also the base year is not the same, its different for different person id, like for some 1984, for some data start at 1999 etc.
Related Posts with Binary DV unbalanced panel data; replacing first year to missing
setting time variable for panel dataI have the following data set. Since it doesn't have a year variable I am confused how to set the ti…
Question about odds ratio for continuous variable of interestLet's say I have a binary variable Y and an ordinal predictor X1 (i.e., X1 = 0, 1, 2, 3, 4, etc.). I…
outreg2 with incorrect asterisk in excelHi Statalists, I find an issue with outreg2 for exporting regression results out to the excel, that…
Need Help to replicate a PlotPlease, I am working on the pooled datasets of 29 countries. I will like to replicate the plots in t…
Yitzhaki IndexDear, I need just an information. Is there a routine to run Yitzhaki Index (material deprivation i…
Subscribe to:
Post Comments (Atom)
0 Response to Binary DV unbalanced panel data; replacing first year to missing
Post a Comment