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: I can't get List to work


From   "Snapp, Kevin Michael" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: I can't get List to work
Date   Fri, 7 Mar 2014 17:28:56 +0000

Hello Stata helpers,

I have a two panel data set.  I set it up with:
 xtset
       panel variable:  id (strongly balanced)
        time variable:  year, 2009 to 2011
                delta:  2 units

I have some outliers, d_satisfactin == -4, I'd like to look at so I get a list of them with:
list satisfaction d_satisfaction id if d_satisfaction == -4

here is a sample of the list:
           | satisfa~n   d_sati~n         id |
           |---------------------------------|
19084. | Completly         -4   2860-179 |
19090. | Completly         -4    2860-30 |
26908. | Completly         -4    5154-45 |



Then I try to look at one by using the id number with:
list year satisfaction d_satisfaction id if id == 846-6

I get this:
          +---------------------------------+
          | satisfa~n   d_sati~n         id |
          |---------------------------------|
 1397. |      Very          .   1131-172 |
 1398. | Completly         -1   1131-172 |
       +---------------------------------+

That's not the id number i asked for! What gives?

here is the description of id:
. desc id

              storage   display    value
variable name   type    format     label      variable label
----------------------------------------------------------------------------------
id              long    %8.0g      id2        Unique Individual ID

if that helps.

Any help is appreciated.


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


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