David said
I would add that -compress- will not change a float to a long (if the
values are all integers, but includes values too large for int or
byte), as
that does not reduce the storage space. If you are interested in
converting
float to long -- because it is the appropriate type for an
integer-valued
variable, then I recommend my -floattolong- program. See -ssc desc
floattolong-.
Quite so. I was thinking mainly of the case where the data have been
acquired from another package in which everything is stored as float
(without optimization; Stat/Transfer can fix this on the fly), so that
even dummy variables or 1-5 indices are stored as floats.