[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
RE: st: Data types, collapse & egen
-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.
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: