Transcription of Title stata.com xtset — Declare data to be panel data
{{id}} {{{paragraph}}}
Declare data to be panel dataSyntaxMenuDescriptionOptionsRemarks and examplesStored resultsAlso seeSyntaxDeclare data to be panelxtsetpanelvarxtsetpanelvar timevar[,tsoptions]Display how data are currently xtsetxtsetClear xt settingsxtset, clearIn the Declare syntax,panelvaridentifies the panels and the optionaltimevaridentifies the timeswithin units oftimevardeltaoptionspecify periodicity oftimevarnoquerysuppress summary calculations and outputnoqueryis not shown in the dialog (default)timevar s units to be obtained fromtimevar s display formatclocktimetimevaris%tc: 0=1jan1960 00:00 , 1=1jan1960 00:00 ,..dailytimevaris%td: 0=1jan1960, 1=2jan1960.
Statistics > Longitudinal/panel data > Setup and utilities > Declare dataset to be panel data Description xtset declares the data in memory to be a panel. You must xtset your data before you can use the other xt commands. If you save your data after xtset, the data will be remembered to be a panel and you will not have to xtset again.
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}