Hi All,

My dataset resembles the following:


Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input double(y x)
1 2
2 3
3 2
4 1
end

I wish to run a regression of y on x, and then run some t-tests for the coefficient of interest, _b[x]. I run:

Code:
reg y x
test _b[x]=1
The test works fine, and delivers the associated p-value.I actually wish to export this result to Latex, as well as another result associated with the test that the parameter equals 2. .
As such, I make use of eststo, following which I use estout (before I used esttab):


Code:
reg y x
eststo t1: test _b[x]=1
eststo t2: test _b[x]=2
estout
As can be seen, the test results seem to have been incorrectly stored- and what is stored are purely the unconstrained regression results. Any guidance on how to rectify this is much appreciated!


Best,
CS