Hello everyone,
I am wondering what is the meaning of the constant using xtreg y i.jd ,fe and reg y i.id i.jd.
If there is only one group, e.g. group id1-3
Using reg y i.id, the constant 3.5 seems to be the average of y in id1
Using xtreg y, fe, the constant 3.433333 seems to be the grand average of y
If there are two groups, e.g. group id1-3, group jd1-5
What is the meaning of the constant 3.566667 using reg y i.id i.jd?
What is the meaning of the constant 3.5 using xtreg y i.jd, fe?
Below is the average of y in different combinations of id and jd. Thank you.

I am wondering what is the meaning of the constant using xtreg y i.jd ,fe and reg y i.id i.jd.
If there is only one group, e.g. group id1-3
Using reg y i.id, the constant 3.5 seems to be the average of y in id1
Using xtreg y, fe, the constant 3.433333 seems to be the grand average of y
If there are two groups, e.g. group id1-3, group jd1-5
What is the meaning of the constant 3.566667 using reg y i.id i.jd?
What is the meaning of the constant 3.5 using xtreg y i.jd, fe?
Below is the average of y in different combinations of id and jd. Thank you.
Comment