Statalist The Stata Listserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Loosing precision with Total( )

From   Kyle Hood <>
Subject   Re: st: Loosing precision with Total( )
Date   Fri, 18 May 2007 12:08:22 -0400 (EDT)

You can always specify the datatype when using egen, for example,

. egen double z = total( x )

I'm not sure where you are using total().

Are you sure the "loss of precision" to which you are referring is actually that? It may simply have to do with the display format.


On Fri, 18 May 2007, Michael Crain wrote:

The solution to this issue is probably simple. Here is my problem.

I am using theTotal function to calculate the total of a variable for a large number of observations: total(var)

I get a result of something like 7.25e+08

How do I get the total without loosing precision?

Stata version 9

Thank you.

PC Magazine’s 2007 editors’ choice for best Web mail—award-winning Windows Live Hotmail.

* For searches and help try:

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