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.
within panel is considered to be irrelevant. For instance, panelvarmight be country and the observations within might be city. In the second syntax—xtset panelvar timevar—the data are to be a panel and the order of observations within panel are considered ordered by timevar. For instance, in data collected from
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}