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]

st: -collapse- command


From   Abhimanyu Arora <abhimanyu.arora1987@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: -collapse- command
Date   Wed, 16 Jun 2010 17:32:46 +0200

Dear statalist

I have 4 variables country, year,type of riot, no. of riots and would
like to finally have country, year, riots where riots are sum across
all types.
I tried using collapse country city (sum) riots, by (year) but get a
type mismatch error. Any suggestions?

Abhimanyu
*
*   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   |   Site index