Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: RE: RE: RE: variable mean and r(mean), why do they differ?


From   "Maarten Buis" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: RE: RE: variable mean and r(mean), why do they differ?
Date   Fri, 25 Nov 2005 11:32:19 +0100

For an interesting post by William Gould on precision see: http://www.stata.com/statalist/archive/2005-11/msg00104.html

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology 
Vrije Universiteit Amsterdam 
Boelelaan 1081 
1081 HV Amsterdam 
The Netherlands

visiting adress:
Buitenveldertselaan 3 (Metropolitan), room Z214 

+31 20 5986715

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

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Maarten Buis
Sent: vrijdag 25 november 2005 10:59
To: [email protected]
Subject: st: RE: RE: RE: variable mean and r(mean), why do they differ?

Use -gen double varname = r(mean)- instead of -gen varname = r(mean)-. In my example the mean of price three deviates from zero in the fourteenth decimal place, which is as close to zero as you could hope to get in a normal computer program.


-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting adress:
Buitenveldertselaan 3 (Metropolitan), room Z214

+31 20 5986715

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

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Raoul C Reulen
Sent: vrijdag 25 november 2005 10:30
To: [email protected]
Subject: st: RE: RE: variable mean and r(mean), why do they differ?

Thanks Maarten,

In my analysis it does make a difference. I have to calculate numerous
mean values, sum them to obtain one variable and then I have to multiply
this by a large factor before I can use it. Any suggestions? Thanks
again.

Raoul



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



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