Hi everyone,
I have a dataset containing 1,320 columns, each column representing a month from January 2003 to December 2013 for 1 independent variable and 9 dependent variables (12 months x 11 years x 10 variables = 1,320 columns). I want to run 132 cross sectional regressions (i.e. one for each month from January 2003 to December 2013) by regressing the independent variable on the 9 dependent variables and store the coefficients in a file. My aim is to write a code that will allow me to run the regressions without performing 132 individual cross-sectional regressions. Plus, I would like to get as much information as possible with regard to the individual regressions (e.g. R^2, t-stats, etc.). One important consideration is that each of the variables considered displays the exact same number of columns under the same headings (i.e. months from January 2003 to December 2013 for each variable). As a consequence, should columns be renamed with the aim of not getting an error from Stata? Thank you in advance.
I have a dataset containing 1,320 columns, each column representing a month from January 2003 to December 2013 for 1 independent variable and 9 dependent variables (12 months x 11 years x 10 variables = 1,320 columns). I want to run 132 cross sectional regressions (i.e. one for each month from January 2003 to December 2013) by regressing the independent variable on the 9 dependent variables and store the coefficients in a file. My aim is to write a code that will allow me to run the regressions without performing 132 individual cross-sectional regressions. Plus, I would like to get as much information as possible with regard to the individual regressions (e.g. R^2, t-stats, etc.). One important consideration is that each of the variables considered displays the exact same number of columns under the same headings (i.e. months from January 2003 to December 2013 for each variable). As a consequence, should columns be renamed with the aim of not getting an error from Stata? Thank you in advance.
Comment