Hello all
I am looking into how the number of times a person migrates affects their change in happiness levels.
My question is that I have a dummy variable that shows when a person migrates ( 1 if they move in that year) but I don’t know how to have a variable that adds onto previous occurrences of this dummy variable showing 1. For example, when the person has already migrated once, there will be a variable to show that this is the second time of moving and so on for multiple migrations.
I am using 15.
Thanks in advance
Related Posts with Panel data and adding the occurrence of a dummy variable
What is the best method / code of calculating respondents' ages?I have two variable: Q26 (month) and Q27 (year). Q26: What month were you born? The answer is 12 mon…
Heckman Error in First stageHi I run the Heckman two step selection model by using following stata code. I am using stata 15.1 v…
Firm vs Industry fixed effectsDear Statalists, I am struggling with choosing firm or industry fixed-effect for my regression with…
Interaction vs. Sub-group AnalysisHi, I have a puzzling result that I cannot reconcile, so I am writing to seek some help. I have tri…
Propensity score matching problemI'm doing a propensity score matching estimation. The code is as follows, psmatch2 highMacroSubFirm …
Subscribe to:
Post Comments (Atom)
0 Response to Panel data and adding the occurrence of a dummy variable
Post a Comment