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

st: RE: how to use multiple datasets?


From   "Ada Ma" <[email protected]>
To   <[email protected]>
Subject   st: RE: how to use multiple datasets?
Date   Sat, 30 Jul 2005 22:12:43 +0100

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/



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