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
How to obtain Wald chi-square from running logistic regressions?Hello statalists, I was an SPSS user and switched to STATA a couple years ago. I have a question ab…
Problem Collapsing DataHello All, I have a panel dataset with 28 years and several U.S. states. Currently, I am trying to …
treatment effects regression adjustmentsHello everyone, I am working on the treatment effects regression adjustments (treatment variable is…
How to change the values of timer in the unit of hours rather than the seconds?The output of command timer is in the unit of seconds, how to cite it and display the duration in se…
weak instrumentshello, I estimate a model with the command ivregress 2sls. I have two endogenous variables. Can I co…
Subscribe to:
Post Comments (Atom)
0 Response to Panel data and adding the occurrence of a dummy variable
Post a Comment