Good morning everybody,
I have a dataset with 150 variables and I would like to create a loop to perform a regression for each of the variables on themselves lagged one period. Something like this for all the variables in my dataset:
Xt=a+B*Xt-1
I would also like to do the same for calculating the ADF test for all the variables in the dataset with the dfuller or dfgls command.
I know that I have to deal with the foreach o forevalues commands but I am not able to do it and it would save me a lot of time.
Thanks in advance
Related Posts with Create a loop for regressions
Adding partner data to responding person data in a panel data fileI wish to extend my analysis of panel data to include information about the responding person's part…
how to export Summary Statistics to wordDear Sir/Madam I am working on my thesis on impact of informal credit on household welfare. I try to…
Matching observations across boundariesI am looking at houses on each side of a designated geographical boundary. Does anyone know how to …
F test for cof.Hello everyone, My model is: Y = b0 + b1.x1 + b2.x2 + b3.x3 + e and I use GMM for this model. I wa…
Panel data with three identifiersDear All, I am currently working with a country-year panel dataset which has data for value added f…
Subscribe to:
Post Comments (Atom)
0 Response to Create a loop for regressions
Post a Comment