Xtset Stata Command. The storage types of both panelvar and timevar must be numeric and both variables must contain integers only. In previous versions of stata there was no xtset command.
If you are new to stata s xt commands we recommend that you read the following sections first. Xt xt introduction to xt commands xt xtset declare a dataset to be panel data xt xtreg fixed between and random effects and population averaged linear models stata is continually being updated and stata users are always writing new commands. Older commands still have those options but they are no longer documented and if you specify them they just perform the xtset for you.
1 unit time variable.
Xt xt introduction to xt commands xt xtset declare a dataset to be panel data xt xtreg fixed between and random effects and population averaged linear models stata is continually being updated and stata users are always writing new commands. Technical note in previous versions of stata there was no xtset command. Year 1990 to 1999 panel variable. Thus do files that you previously wrote will continue to work.