Hello all,

I am looking into how the number of times a person migrates affects their change in happiness levels by using panel data and with the plan to use fixed effect regression.

In my econometric model, I have dummy variables that show when an individual moves and how many times they have moved up to that point (dummy variables are as follows, ‘5th time of migration’, ‘6th time of migration'…nth time of move). It has come to my awareness that with the increasing occurrence of migration, that prior migrations may impact the effectiveness of the nth time of migration.

My question Is if there is a way to take this into account? I know about interaction variables, but the model currently has 11 dummy variables to show each time a person moves. Would the creation of a categorical variable to encompass all the dummy variables be needed but how to consider if prior moves affect the current move?

I am using Stata 15.

This is a continuation of the post from https://www.statalist.org/forums/for...dummy-variable.

Thank you in advance.