Similar questions have popped up several times on the forum but I couldn't find an answer to what I am looking for...
I run simple regression with product code dummies and I get coeffcients on product code:
But I have too many products and therefore too many product code dummies. Even I set mat size to be 11.000, it is not enough... Instead I want to use xtreg and obtain the same coeffcients. I know I could do:
But it does not give the same results. Is there a way of obtaining true coeffcients on product code dummies?
I run simple regression with product code dummies and I get coeffcients on product code:
Code:
reg y x i.product_code, noconstant
Code:
xtset product_code xtreg y x, fe predict y_hat, u
Comment