linear model means linear in parameter only. When you have a dummy, you can treat it as class, add class statement in your code. However, you can treat it as an independent variable and run the regression as usual. Be aware of the interpretation of your final model. The coefficient is only meaningful when you compare to your baseline (like 3rd floor mentioned) , and that baseline is all the obs have "0" in the dummy.