Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: Data types, collapse & egen

From   "Eric G. Wruck" <>
Subject   RE: st: Data types, collapse & egen
Date   Mon, 12 Sep 2005 20:24:06 -0400

Great instincts, Tim.  I was using outsheet but was also browsing the data within Stata beforehand & saw the problem there already.  I guess the display format is used both in browse and by outsheet.  As per your suggestion, I changed the display formats & now everything is copacetic.  I guess my new question is how do collapse & egen pick display formats (because I just went with what Stata gave me)?




>How are you figuring out the values in your collapsed dataset?
>It sounds like you are using -outsheet- to output the data (or are
>displaying it using -list-).  If so then the data is outputted using its
>display format.  If your display format is %X.0g then it could write to
>the text file something like:
>Rather than:
>To stop this behavior you need to change the display format of your
>variable to something like %12.0g.



       Eric G. Wruck
       2535 Sherwood Road
       Columbus, OH  43209

       ph:      614.231.5034
       cell:    614.330.8846
       eFax:    614.573.6639

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index