-egen- as such does nothing about formats.
I have not scanned the code for all -egen- functions
to see if any sets a format, and I can't see a reason
why a user could not program an -egen- function to include
a default format and/or a -format()- option, but neither
is an issue with -total()-.
So long as no -egen- function does anything with
formats, you will get the default format for the
data type you produce, e.g. %10.0g for a double.
-collapse- does pay some attention to formats,
as examination of the code reveals.
Nick
[email protected]
Eric G. Wruck
> I guess
> my new question is how do collapse & egen pick display
> formats (because I just went with what Stata gave me)?
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/