Bookmark and Share

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

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

st: -collapse- command

From   Abhimanyu Arora <>
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?

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index