Assume a simple linear regression model with varying intercepts and slopes:

I have a dataset with one continuous predictor (x) and one categorial predictor (“category”). Let’s say 2 categories. I want to infer a1, a2, b1, b2.

How should I treat data points that belong to both of these categories?