# Compairing different estimation methods for FE model

I'm learning the basic of panel data regression and there is something that i'm not sure about. There seems to be 2 different approachs to estimate FE models:
(1) Assuming that the slope is constant, and estimate the equation: $$Y_{it} = \alpha_i + \beta X_{it} + e_{it}$$ Which is equal to using the normal OLS to each sample $i$ individually.

(2) By applying the Fixed Effects Transformation to estimate: $$( Y_{it} - \overline{Y_i}) = \beta ( X_{it} - \overline{X_i}) + (\epsilon_{it} - \overline{\epsilon_i})$$

Is the result of the two estimation methods (significantly) different? What are the pros and cons of each method and how do you choose one or another? I've noticed in STATA the command xtreg,fe uses the latter method(2), then how is the intercept estimated by this command and is it equal the mean of $\alpha_i$ estimated by method(1)?

English is not my native language and I'm fairly new to this site so I'm well open for advices. Thank you.

• Thanks for your sharing. But then how is the _cons coefficent estimated in xtreg,fe if all the time-variant are eliminated? And what does this number mean? – Hiếu Phẩy Sep 11 '16 at 19:25
• Oh I've read that article. But in the demonstration of that article, the average value of the fixed effects estimated by the dummy method 4 + (-2.5 + 4.3333 + 10.3333)/3 is bigger than the number 7.545455 of xtreg,fe. So I wondered if there is any special computation method to the xtreg,fe command. – Hiếu Phẩy Sep 11 '16 at 20:18
• EDIT: I think it should be 4 + (-2.5 + 4.3333 + 10.3333)/4 because there are 4 groups but the result is still slightly smaller than 7.545455 – Hiếu Phẩy Sep 11 '16 at 20:26