I am doing a multiple regression in MATLAB. I am using regstats with the ‘interactions’ model type, and I have about 12 predictor variables. My understanding is that ‘interactions’ will perform the regression with all of the interaction terms. I assume that the order of the new regression variables is a constant, followed by all of the linear terms, followed by all of the interaction terms, but I don’t know what order the interaction terms are in.
I know that I can use x2fx with ‘interaction’ to generate the actual values, but then I have 66 interaction variables, and I can’t figure out which is which.
Is there any easy way to figure this out? Is there a way to generate the model that x2fx uses when you select ‘interactions’?
Source