Statalist The Stata Listserver


[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


From   "Michael Blasnik" <[email protected]>
To   <[email protected]>
Subject   Re: st: Re: How to merge individual records to groups in a largedataset, w/o using collapse
Date   Tue, 27 Feb 2007 09:44:09 -0500

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" <[email protected]>
To: <[email protected]>
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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index