Philippe:
not quite.
You should create one variable only that includes all the years the time dimension of your panel dataset is composed of (put differently: you should group together all your -year- dummies in an unique categorical variable, each level of which relates to a given year).
Then you should -xtset- you dataset:
The -paneid- tells Stata that you have a panel dataset and that you're going to investigate panel-wise heterogeneity.
Eventually, you can add in the righ-hand side of your regression equation, -i.year- among predictors.
I do recommend you to give a comprehensive reading to -xtset- and -xtreg- entries in Stata .pdf manual before starting your analysis: it might sound time-consuming (and this impression is, at least at the beginning, true) but the long-lasting rewarding is worth the effort (see also William Lisowski 's wise recommendation on this forum about reading and re-reading Stata .pdf manual in order to increase your knowledge of this wonderful software and increase yiour statistical skills through its many worked-out examples).
not quite.
You should create one variable only that includes all the years the time dimension of your panel dataset is composed of (put differently: you should group together all your -year- dummies in an unique categorical variable, each level of which relates to a given year).
Then you should -xtset- you dataset:
Code:
xtset panelid timevar
Eventually, you can add in the righ-hand side of your regression equation, -i.year- among predictors.
I do recommend you to give a comprehensive reading to -xtset- and -xtreg- entries in Stata .pdf manual before starting your analysis: it might sound time-consuming (and this impression is, at least at the beginning, true) but the long-lasting rewarding is worth the effort (see also William Lisowski 's wise recommendation on this forum about reading and re-reading Stata .pdf manual in order to increase your knowledge of this wonderful software and increase yiour statistical skills through its many worked-out examples).
Comment