Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: RE: collapsed data or the original


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: collapsed data or the original
Date   Thu, 24 Jun 2010 23:46:31 +0200

<>

Like Nick, I would like to see proof of your claim. The values are the same
in this example:


*************
sysuse nlswork, clear
by year, sort : summarize age
collapse (mean) age, by(year)
l
*************

Does your command -summ y, by (time)- really run without producing an error?


HTH
Martin


-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of riyadh shamsan
Sent: Donnerstag, 24. Juni 2010 18:30
To: statalist@hsphsun2.harvard.edu
Subject: st: collapsed data or the original

when you use collapse and examine the mean values they turn to be
different from the original set when using the by option.

So for example if you have a time series and it is a monthly data so
you will go:

summ y, by (time)

when you collapse your data and use the mean option your result won't
be the same. Is this correct?
*
*   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–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index