|
|  |
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: Re: How to merge individual records to groups in a largedataset, w/o using collapse
I think you misunderstood me. I didn't suggest doing one variable at a
time, although that could be built into the loop too and may be a viable
alternative overall. What I suggested was to analyze one category of
group6 at a time within a loop and only using only the variables in the
dataset that you need summary stats for (assuming rhere may be other
variables in that large dataset that aren't needed for this task) . The
entire process can be written into a do or ado file to automatically create
the results dataset you want. You didn't bother answering my questions
about how many levels there are in region6 and whether the variables you
need could fit in memory using the largest region6 category, so I won't
bother showing you the code to automate it :)
Michael
----- Original Message -----
From: "Allon Crazy" <allon_crazy@yahoo.com>
To: <statalist@hsphsun2.harvard.edu>
Sent: Tuesday, February 27, 2007 9:13 AM
Subject: Re: st: Re: How to merge individual records to groups in a large
dataset, w/o using collapse
Thanks, Michael,
Region6 is a variable with a list of values. yes, i
guess I can try to sum/mea/median one variable each
time. Hopefully it works. In the meantime, if there
is another command or command combinations that allow
me to accomplish the same task, it would be great.
Thanks again.
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/