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 at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: STATA command equivalent to SPSS "aggregate"?


From   Richard Williams <richardwilliams.ndu@gmail.com>
To   statalist@hsphsun2.harvard.edu, statalist@hsphsun2.harvard.edu
Subject   Re: st: STATA command equivalent to SPSS "aggregate"?
Date   Tue, 19 Mar 2013 10:46:02 -0500

At 09:21 AM 3/19/2013, Frank Lopresti wrote:
I don't think collapse does all aggregate does,  collapse doesn't seem
to allow you to create a aggregated file with several break variables.
 I guess you could accomplish this with a second collapse.

You may be right, since I don't remember SPSS aggregate that well. But, collapse does let you specify multiple vars in the -by- option, if that is what you mean. The help for collapse says

by(varlist)    groups over which stat is to be calculated


On Tue, Mar 19, 2013 at 9:35 AM, Scott Holupka <scott.holupka@jhu.edu> wrote:
> As a long-time SPSS user I had the same question the other day and the
> -collapse- command worked fine.
>
> Scott
>
>
> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Judith Saebel
> Sent: Tuesday, March 19, 2013 9:12 AM
> To: statalist@hsphsun2.harvard.edu
> Subject: RE: st: STATA command equivalent to SPSS "aggregate"?
>
> Hi Richard,
>
> Thanks for the suggestion.  I'll have to explore this.
>
> Sincerely,
>
> Judith
>
> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Richard Williams
> Sent: Tuesday, 19 March 2013 23:16
> To: statalist@hsphsun2.harvard.edu
> Subject: Re: st: STATA command equivalent to SPSS "aggregate"?
>
> If i remember my SPSS, You probably want -collapse-.
>
> Sent from my iPad
>
> On Mar 19, 2013, at 8:40 AM, Judith Saebel <clickjls@esc.net.au> wrote:
>
>> Dear All,
>>
>> In STATA (version 11), is there an equivalent to the SPSS command
>> "aggregate" please?
>>
>> Many thanks in advance for any advice.
>>
>> Sincerely,
>>
>> Judith Saebel
>>
>> *
>> *   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/
> *
> *   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/
>
> *
> *   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/
>
> *
> *   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/
*
*   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/

-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME:   (574)289-5227
EMAIL:  Richard.A.Williams.5@ND.Edu
WWW:    http://www.nd.edu/~rwilliam

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