Hi All,
I have data that resembles the following.
In the above, I have a regressand y, and 2 regressors, x1 and x2. I wish to run univariate regressions separately- i.e. run a regression of y on x1 and x2 separately. After each regression, I wish to use the outtex command. For instance, I wish to use:
Now, instead of presenting the results separately, I wish to append the first table, with the second, as the rows of the separate tables will depict the same things (coefficient, Standard error, t stats, Number of observations, R2). I know that outreg permits appending tables, but I am not able to find how to do this with outtex. Any help is much appreiciated.
Best,
CS
I have data that resembles the following.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(y x1 x2) 32 2 12 2 1 3 1 2 2 123 32 21 123 41 12 12 3 2 21 2 2 123 2 21 123 2 2 123 2 21 end
In the above, I have a regressand y, and 2 regressors, x1 and x2. I wish to run univariate regressions separately- i.e. run a regression of y on x1 and x2 separately. After each regression, I wish to use the outtex command. For instance, I wish to use:
Code:
reg y x1 outtex, labels level detail legend key(stab)
Best,
CS
Comment