I just realized I have always worked regression problem where the independent variables were always numerical. Can I use linear regression in the case where all independent variables are categorical? And if that is the case, how to deal with the fact that a linear regression on categorical input will provide a discrete output, instead of the continuous one I would like to have?