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
Parallel trend assumption in Diff and Diff methodHi, Currently, I am working with CPS monthly microdata from https://ceprdata.org/cps-uniform-dat.../…
How to convert numeric date variable?Current format for date is %td and numeric The date is shown as 04feb2017 and I want to change it t…
Peer Firm Averages excluding ith observationHi All, I am pretty new to Stata , so a bit lost on this one. I am trying to find Peer Firm averages…
egen mean_var = mean(var), by(xx & xx)Hi How do I generate a mean variable sorted by both year and origin? I want to generate the mean v…
Predict after xtlogitI am using xtlogit with fe options. I notice that the results drop some observations due to all posi…
Subscribe to:
Post Comments (Atom)
0 Response to Binary DV unbalanced panel data; replacing first year to missing
Post a Comment