Hello, I have a rather simple issue that is not statistical.
I have 3 factor variables in stata, I want to generate 1 single term that is very similar to if I were to use an "interaction" in a regression.
so example: i have 3 factor variables A B C
each has 3 categories 1,2,3
I want to generate a variable called ABC that is essentially like doing i.A#i.B#i.C when I run it in a regression model for example. I want to generate that term while hopefully not having to redo the labels. Using xi:regress .... is not exactly the same so please don't suggest that. I've read the fvvarlist and it did not help.
There may even be a simple program out there but I am obviously not googling the right words.
Thank you.
I have 3 factor variables in stata, I want to generate 1 single term that is very similar to if I were to use an "interaction" in a regression.
so example: i have 3 factor variables A B C
each has 3 categories 1,2,3
I want to generate a variable called ABC that is essentially like doing i.A#i.B#i.C when I run it in a regression model for example. I want to generate that term while hopefully not having to redo the labels. Using xi:regress .... is not exactly the same so please don't suggest that. I've read the fvvarlist and it did not help.
There may even be a simple program out there but I am obviously not googling the right words.
Thank you.
Comment