I am trying to run an regression of this form:
For some reason this excludes the last level of W instead of the first. Is that always the case? How can I know which level will be omitted? The following works as expected
I don't care which level I omit as long as I can omit the same base level in both regressions. Many thanks for any suggestions!
Code:
clear set seed 1729 set obs 1000 gen T = ceil(runiform() * 3) gen W = mod(_n, 3) gen C = 1 gen Y = C + T + runiform() reg Y ibn.T#(C b0.W), noconstant
Code:
reg Y ibn.T b0.W, noconstant
Comment