Dear Users,

I have a panel data ranging from 2001 to 2010. For comparative purposes, I want to use -fe- estimates for before 2005 (2001-2004) and 2005 onwards (2005-2010). In that case, can I use the following commands with my full-sample dataset?
Code:
xtreg Y X1 X2 X3, fe cluster (ID), if Year<=2004
Code:
xtreg Y X1 X2 X3, fe cluster (ID), if Year>=2005
Or, should I seperate the whole dataset into two different files on the basis of years, and then run the equation without the 'if' suboption.

Thanks.