Statalist


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

Re: AW: AW: AW: st: AW: Diffrence between sum and tabsum


From   Ulrich Kohler <kohler@wzb.eu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: AW: AW: AW: st: AW: Diffrence between sum and tabsum
Date   Tue, 15 Sep 2009 15:42:57 +0200

Am Dienstag, den 15.09.2009, 15:30 +0200 schrieb Martin Weiss:
> <> 
> 
> " I think -tabsum- should produce the same solution
> than summarize"
> 
> 
> 
> Maybe this effect is related both to the "close-to-zero" thing and the OS issue. As both commands are built-in, it is difficult to look under the hood. Still, I hope you get the same answer from this more straightforward example. I certainly do...
> 
> 
> *************
> sysuse auto, clear
> bys for: su mpg
> tab for, sum(mpg)
> *************

Yes I do. I also checked

gen double mpg2 = mpg/21.3
bys for: su mpg2
tab for, sum(mpg2)




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