Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: xt data, D and L operators and sort


From   Neal Beck <[email protected]>
To   [email protected]
Subject   st: xt data, D and L operators and sort
Date   Mon, 5 Apr 2010 17:14:30 +0200

I seem to be unsorting (from the natural xt sort order) my panel data quite frequently. So then stata complains about the data being unsorted when I use lag and difference operators. Yup, I can remember to say xtset before issueing a command using D. or L. if I think I might have resorted the data (one never quite knows). But is there no equivalent for xt  
bys var: which got rid of the annoying need to issue a sort command before by:. Obviously my first pref by far would be to have stata always sort my data when it sees D. or L. with xt data. Am I mssing something obvious here?

TIA
Neal


Neal Beck
On leave AY 2009 at the Instituto Juan March, Madrid Spain




*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index