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.
xtset will set timevar’s display format for you. Thus, the unitoptions are convenience options; they allow you to skip formatting the time variable. The following all have the same net result: Alternative 1 Alternative 2 Alternative 3 format t %td (t not formatted) (t not formatted) xtset pid t xtset pid t, daily xtset pid t, format(%td)
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}