Hi All,
I have data that resembles the following:
Here, I have data for y and x, by year. I first declare the data as time series using the -tsset- command. Thereafter, I run a simple regression as follows:
I normally export the regression to LaTex using the -esttab- class of commands as follows
What I wish to do now is to include an additional row (without typing out the results by hand in Latex), that performs a simple hypothesis test of the null:
H0: beta1+beta2=0
HA: not H0
I could implement this on Stata quite simply as:
However, instead of just providing the p-value of this test statistic, I would like the sum of the coefficients along with the standard error of the sum displayed as well. Is there a simple way to do this?
Many thanks,
CS
I have data that resembles the following:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(y x time) 213 321 1 23 3 2 2 2 3 2 1 4 1 2 5 3 3 6 1 2 7 2 3 8 3 1 9 2 2 10 end
Code:
regress y x L.x
Code:
esttab using "table1.tex", scalar(F) varwidth(25) keep(x L.x ) star(+ 0.15 * 0.10 ** 0.05 *** 0.01) p label replace
H0: beta1+beta2=0
HA: not H0
I could implement this on Stata quite simply as:
Code:
test x= -L.x
Many thanks,
CS
Comment