Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: RE: how to use multiple datasets?


From   "Steve Stillman" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: how to use multiple datasets?
Date   Mon, 1 Aug 2005 03:04:58 +1200

If in the end you do need to merge the datasets together to run your
analysis and you cannot 'save' them, your best option is to save each
separate dataset as a tempfile (see tempfile) and merge these together
in active memory.  All tempfiles are eliminated when a Stata session is
closed, so I imagine this would be legal for you to do. 

-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of Ada Ma
Sent: Sunday, July 31, 2005 9:13 AM
To: [email protected]
Subject: st: RE: how to use multiple datasets?


How about if you -append- the datasets and run the regression for each
country one at a time?

Alternatively you can use -foreach- to loop through the datasets and do
the
regressions.


> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of 
> Yang Bonny Lin
> Sent: 30 July 2005 06:09
> To: [email protected]
> Subject: st: how to use multiple datasets?
> 
> 
> Dear help list,
> 
> I am currently working on project where I need to use 
> multiple datasets (i do not have access to the original data) 
> on a server.
> 
> Each dataset is a country and I am interested in variables X1,X2,X3, Y
> 
> How do I run a regression ACROSS the countries with the 
> dependent variable Y and explanatory variables X1,X2,X3 given 
> that I have multiple datasets that I cannot merge? do I do a 
> looping function?
> 
> But X1,X2 are defined slightly different in each of the 
> country's datasets, so is there a way to both loop through 
> the countries and redefine each country's variable when I am at it?
> 
> Thanks!
> best,
> yang
> 
> 
> 
> *
> *   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/
> 

*
*   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/


*
*   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