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
[email protected]
To
[email protected]
Subject
st: Collapse command
Date
Fri, 4 Mar 2011 14:33:09 -0600 (CST)
Hello, I have a huge data set with student level data.
I have been trying to collapse the data set at the school level, first time I did it, it worked, but that only one time.
Here's the code:
set mem 30g
set virtual on
use /home/jpellerano/scores_2003-2010_cleaned.dta
destring campus, replace
format campus %20.0f
collapse (count) y_red_count=y_red, by(campus year)
list
After reching the collapse line STATA ends the do file.
I'll appreciate any suggestion.
Thanks,
Jose A. Pellerano
Texas A&M University
Dpt of Economics
*
* 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/