Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: comparing treatment effects across years


From   Kit Baum <[email protected]>
To   [email protected]
Subject   st: comparing treatment effects across years
Date   Sun, 18 Dec 2005 11:56:58 -0500

Meryle said

I'm estimating the same model over several years (regress y x1 x2 x3,
if year == 2001) with the only change for the equations being the if
year == statement.  I then generate a treateffect = for eachyear and
want to compare whether or not the predicted treatment effect in each
of the years equivalent across each of the years.

webuse grunfeld,clear
qui forv i=1935/1937 {
	reg invest mvalue kstock if year==`i'
	estimates store e`i'
}
suest e*
test [e1935_mean]mvalue=[e1936_mean]mvalue
test [e1935_mean]mvalue=[e1937_mean]mvalue, accum

Generalizes to any number of years...

Kit Baum, Boston College Economics
http://ideas.repec.org/e/pba1.html


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index