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]

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


From   Richard Williams <[email protected]>
To   [email protected], [email protected]
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 <[email protected]> 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: [email protected]
> [mailto:[email protected]] On Behalf Of Judith Saebel
> Sent: Tuesday, March 19, 2013 9:12 AM
> To: [email protected]
> 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: [email protected]
> [mailto:[email protected]] On Behalf Of Richard Williams
> Sent: Tuesday, 19 March 2013 23:16
> To: [email protected]
> 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 <[email protected]> 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:  [email protected]
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index