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: -collapse- command
From
Abhimanyu Arora <[email protected]>
To
[email protected]
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/