Akhzan:
1) you -xtset- your panel dataset with -panelvar- and -timevar- to tell Stata that you're dealing with a panel dataset.
2) you add -i.year- inn the right-hand side of your regression equation to test the contribution of time to variation in the dependent variable, when adjusted for the remaining predictors. The -fvvarlist- notation also informs Stata that -i.time- is a categorical variable;
3) if you use -xtregar- you can add -i.time- only in the right-hand side of your regression equation.
1) you -xtset- your panel dataset with -panelvar- and -timevar- to tell Stata that you're dealing with a panel dataset.
2) you add -i.year- inn the right-hand side of your regression equation to test the contribution of time to variation in the dependent variable, when adjusted for the remaining predictors. The -fvvarlist- notation also informs Stata that -i.time- is a categorical variable;
3) if you use -xtregar- you can add -i.time- only in the right-hand side of your regression equation.
Comment