In my study I have an continuous dependent variable (return) regressed on an independent continuous variable x1 (momentum) and a number of control variables.
I am currently investigating whether this momentum variable x1 differs by property type. Property type is indicated by a categorical variable which can take on code 1 till 10 depending on the property type. For example code 4 means that the property is an apartment building.
I am mainly interested to see if the momentum effect is different for property types with code 1,2,3 and 4.
From what I understand I have two ways to do this:
(1) Create a subsample for all values with property type 1,2,3 or 4 and run the regression within this sub sample.
(2)Create N-1 dummy variables (so 9 in this case) for the Property type and the interaction terms with momentum, for example DumProptype_4 * momentum. Then I have 9 dummy variables and 9 interaction terms.
My Question(s):
-Is it true I can use one of the two methods described above, or are there restrictions for this?
-If using the dummy variable approach, should I also include 9 interaction terms apart from the 9 dummy variables, or only the interaction terms I am interested in?
Help would be greatly appreciated, thanks in advance!