To Frank and Marcelo:
Thank you for your responses, and sorry for my late
reply.
(Frank wrote)
> The -float()- function rounds its argument to floating place accuracy, but
> doesn't change how it's stored since that's integral to its binary
> representation. In short, what you want is
>
> assert z_coef>=float(3.05) & z_coef<=float(5.55)
> Not commands like
> replace z_coef = float(5.55) if year == 1991
> because, as assert told you, -float()- didn't (and can't) change how the
> number is stored.
Thank you for your advice. It worked fine.
I wonder why I didn't come up with such a simple solution.
----------
(Marcelo wrote)
> Type help datatypes to get the following info:
Thank you for your info.
It helped a lot to get deeper undestanding about the issue.
K.I.
*
* 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/