Transcription of Title stata.com xtset — Declare data to be panel data
{{id}} {{{paragraph}}}
Declare data to be panel dataDescriptionQuick startMenuSyntaxOptionsRemarks and examplesStored resultsAlso seeDescriptionxtsetmanages the panel settings of a dataset. You mustxtsetyour data before you can usethe the data in memory to be a panel in which theorder of observations is timevardeclares the data to be a panel in whichthe order of observations is relevant. When you specifytimevar, you can then use Stata s time-seriesoperators and analyze your data with thetscommands without having totssetyour arguments displays how the data are currentlyxtset. If the data are set with apanelvarand atimevar,xtsetalso sorts the data bypanelvar timevarif atimevarwas specified.
to use the xt commands. You do not need to set both, but it will not matter if you do. xtset and tsset are different, however, when you set just a panelvar—you type xtset panelvar— or when you set just a timevar—you type tsset timevar. If you save your data after xtset, the data will be remembered to be a panel and you will not
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}