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
Relative survival and relative excess risk (RER) using imputed dataHi everyone, Does anyone know how I can calculate relative survival (strs) and relative excess risk…
Foreach and forevalues loopHi, I have a list of variables that look as follows: max_1 max_2 max_3. All the numbers in the vari…
covert date with two digital yearHi Friend, I need to convert the string date format, such as "22-Apr-18" to date format. It seems th…
Autocorrelation Diff in DiffHello, I am working on the following Diff in diff model: ln_sales = b0 + b1*treatment + b2*(treat…
Sort out the observations from a large sampleHello everyone. I am a new user of Stata and new member of this forum. May I ask you a question. I a…
Subscribe to:
Post Comments (Atom)
0 Response to Panel data and adding the occurrence of a dummy variable
Post a Comment