Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: problem with the generate command


From   Isabelle.Roux@ehess.fr
To   statalist@hsphsun2.harvard.edu
Subject   st: problem with the generate command
Date   Tue, 3 Mar 2009 10:07:57 +0100 (CET)

Hello,


I have a health expenditure variable in current dollars, called H. It is a
numeric variable ("long"). I called it "H". I want to convert it in euros,
e.g to multiply by 1,6 so I write in my do-file:
"gen health=1.6*H"
I am very surprised because the results are wrong. It is very strange. For
instance:
H=13.00   and  Health=23.32 (first observation)
or: H=116.00 and Health=16.96 (2d one)
or: H=76.00 and Health=169.6

Thank you very much for help
Best regards

Isabelle

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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