I have a list of variables grouped into two globals
global x ="x1 x2 x3 "
global z="z1 z2"
I need to make the regression of y x1 x2 x3 z1 z2 x1*z1 x1*z2 x2*z2 x2*z1 x3*z1 x3*z2 (so all variables included in globals and their interactiosn)
I prove:
regress y ${x}##${z}
but there is an error and STATA says: "# invalid name"
Any help would be much appreciated. Unlike the example, I have more than five explanatory variables.
Ana
global x ="x1 x2 x3 "
global z="z1 z2"
I need to make the regression of y x1 x2 x3 z1 z2 x1*z1 x1*z2 x2*z2 x2*z1 x3*z1 x3*z2 (so all variables included in globals and their interactiosn)
I prove:
regress y ${x}##${z}
but there is an error and STATA says: "# invalid name"
Any help would be much appreciated. Unlike the example, I have more than five explanatory variables.
Ana
Comment