Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: sum issue (wrong values)


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: sum issue (wrong values)
Date   Wed, 24 Oct 2012 11:24:35 +0100

This is ambiguous as between the -summarize- command (which can be
abbreviated -sum-) and the -sum()- function, which gives cumulative or
running sums, although it seems you mean the first. In Stata (not
"STATA") commands and functions are quite different families.

Even then, you must show us exactly what you typed and exactly what
Stata did by copying output. Otherwise it is difficult to guess what
is going on. Does -latency_int- have value labels, which are what you
see when you -list-, but not what are -summarize-d? You should show us
the results of

describe latency_int
count
summarize latency_int, detail

Nick

On Wed, Oct 24, 2012 at 11:13 AM, Christian Bärtsch
<christian.baertsch@student.unisg.ch> wrote:

> I have a issue using the sum function of STATA. I have a data set,
> where I have a variable called latency_int (type: int; and something
> over 5700 values). I use the command sum(latency_int). There I get the
> minimum of 2 and the maximum of 1999 even though the data set contains
> values from 44 to 81000 (those values are shown when I use
> list(latency_int). It must be a pretty basic mistake, however I have
> not been able to come up with a solution for days.

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


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