Not following advice!
We need to see your original commands, exactly as typed -- as long
advised in the FAQ -- but in general if you ask -summarize- to repeat
then what you will see will the results of the last -summarize-: r-class
results (and e-class results) are overwritten willy-nilly.
Nick
[email protected]
Lektzian, David
Dear Martin & List,
Originally I ran this in a do file and thought I was getting the results
I wanted, but I think this produces summary statistics for the entire
dataset not "by year." For the land variable that I suggested in my
original email it is not that important because the 75th and 25th
percentile do not change much from year to year, but for other variables
I am using, I need to be able to generate the dummies by year. The
problem is that when I use by year before the summarize command it does
not seem to be capturing the percentiles to use later.
After I summarize by year this is all I get when I type return list:
return list
scalars:
r(N) = 0
r(sum_w) = 0
r(sum) = 0
When I just summarize, but not by year, I get:
return list
scalars:
r(N) = 6972
r(sum_w) = 6972
r(mean) = 685537.7666594951
r(Var) = 3463911718862.249
r(sd) = 1861158.703298096
r(skewness) = 5.396472941659592
r(kurtosis) = 36.57465730018304
r(sum) = 4779569309.15
r(min) = 1.95
r(max) = 16389950
r(p1) = 60
r(p5) = 430
r(p10) = 720
r(p25) = 25680
r(p50) = 121400
r(p75) = 527970
r(p90) = 1280000
r(p95) = 2381740
r(p99) = 9327420
.
Any thoughts on what I'm doing wrong?
Dave
*
* 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/