<p>Yes you can do that as long as the resulting product is not always 1 or 0 (e.g. multiplying male and female dummy). There is no special rule about what you propose other than the regular caveats that apply to regression with dummies.</p>

CC BY-SA 4.0
2024-01-20T20:33:32.483Z
2024-01-20T20:33:32.483Z
1muflon1
<p>Are there any rules about multiplying dummy variables in a regression?</p>
<p>For example can I say:
y = D1<em>D2</em>x1 + x2 + x3</p>
<p>Would I be able to state D1*D2 as I want both criteria to be met before x1 is included?</p>
<p>Would the correct  notation then be as follows?
D =  [1, 1], D has occurred at time t
[0, 0], otherwise</p>

<regression>
Can I multiply two dummy variables together?
MLux
# Can I multiply two dummy variables together?

(Asked by: username_0 on 2024-01-20)

Are there any rules about multiplying dummy variables in a regression?

For example can I say:
y = D1*D2*x1 + x2 + x3

Would I be able to state D1\*D2 as I want both criteria to be met before x1 is included?

Would the correct notation then be as follows?
D = [1, 1], D has occurred at time t
[0, 0], otherwise

**Tags:** regression


---

## 1 answers

### Answer by username_1 on 2024-01-20. Score: 2 | Accepted answer

Yes you can do that as long as the resulting product is not always 1 or 0 (e.g. multiplying male and female dummy). There is no special rule about what you propose other than the regular caveats that apply to regression with dummies.


---

