Statalist


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

AW: st: AW: problem with the generate command


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   AW: st: AW: problem with the generate command
Date   Tue, 3 Mar 2009 14:13:19 +0100

<> 



So Statalisters, as you can see from the signature below Maarten`s message,
both Ma*rt?ns now reside in Tübingen, Germany. If you think that makes the
"distinction" even more challenging, I agree wholeheartedly :-)



Best wishes
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Maarten buis
Gesendet: Dienstag, 3. März 2009 12:25
An: statalist@hsphsun2.harvard.edu
Betreff: Re: st: AW: problem with the generate command

Below is my attempt at replicating what Isabelle had done, except that in
this example Stata seems to function OK. Maybe Isabelle can change this
example so that we can replicate the error she received.

*------- begin example ---------
drop _all
input long h
13
116
76
end
list
gen health = 1.6*h
list
*-------- end example -----------

-----------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://home.fsw.vu.nl/m.buis/
-----------------------------


--- On Tue, 3/3/09, Martin Weiss <martin.weiss1@gmx.de> wrote:

> From: Martin Weiss <martin.weiss1@gmx.de>
> Subject: st: AW: problem with the generate command
> To: statalist@hsphsun2.harvard.edu
> Date: Tuesday, 3 March, 2009, 9:14 AM
> <> 
> 
> A bug in -generate- would be weird indeed. Give an excerpt
> of your data, and
> show us exactly what you typed and what Stata made of it...
> 
> HTH
> Martin
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag
> von
> Isabelle.Roux@ehess.fr
> Gesendet: Dienstag, 3. März 2009 10:08
> An: statalist@hsphsun2.harvard.edu
> Betreff: st: problem with the generate command
> 
> 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/
> 
> 
> *
> *   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/


      

*
*   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/


*
*   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