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
Calculation of frequency and ratiosHi Everyone, Bellow in the -dataex- example, I have a zipcode, date (month_year) and name of an ins…
Esttab Output File not generated properlyI am writing the following code: local variables= "taxratesales taxrateVAT" estpost tabstat `variab…
Creating variable out of conditional values in another one (GDELT)Hello everyone. Let me first describe my data and purpose of analysis for the sake of context. I hav…
Calculating Cronbach's alpha in STATA does not return a result, only "."Dear Statalist I have a dataset of responses to a questionnaire. I need to calculate Cronbach's alp…
do file doesn't run well on DropboxHey everyone, we are using Dropbox to collaborate our work in Stata. I wrote a do file that runs pe…
Subscribe to:
Post Comments (Atom)
0 Response to Binary DV unbalanced panel data; replacing first year to missing
Post a Comment