Dear Statalisters;
I need to run the same regression for 5000 different samples.
I have a separate file for each sample, for example, sample1.dta, sample2.dta... sample5000.dta
then I do the loop for the regression using
forvalues i=1/5000{
use sample1.dta,clear
reg y x1 x2
}
Now I need to store the coefficient of x1 in each of the 5000 regressions in a single file (either stata or excel ) to plot a graph on that.
Could you please suggest a sufficient way to do that?
Thanks very much in advanced
Related Posts with Storing coefficients when running same regression for different sample
Illustrative table of percentages to read in WordDear Statalist, I would like to create a table of publication quality summary percentages. The col…
Fixed effect issue (deleting variables)Hi, I got a question related to my regression.In fact, I'm using merged datasets. first one is bank…
Observations and data pointsHello, I'm often reading that people report the number of observations and data points. I know where…
creating a graph with volume of procedures and average lineI would like to create a graph depicting volume of use of the procedure: hysteroscopy vs ID I have …
summing over a unique identifier over a panel data of county and yearI want to find the summation of unique rf_id for each unique county in different years of my dataset…
Subscribe to:
Post Comments (Atom)
0 Response to Storing coefficients when running same regression for different sample
Post a Comment