Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: comparing coefficients after treatreg


From   Agnieszka Kanas <a.kanas@maw.ru.nl>
To   statalist@hsphsun2.harvard.edu
Subject   st: comparing coefficients after treatreg
Date   Sun, 07 Oct 2012 14:58:11 +0200

Dear Statalisters,


I have a question how to compare the coefficients between two models after treatreg. I used suest and then test commands. However, after running a test command I get an error message "equation not found." I think the problem might be that I have a multiple-estimation equation. Also, is it possible to compare treatment effect coefficients between two models?

I post my code here; any suggestion is greatly appreciated.


*-------------begin example--------------------

#del ;



treatreg ww wa cit, treat(wc=wmed wfed);

estimates store M1;

treatreg ww wa cit health, treat(wc=wmed wfed);

estimates store M2;

#del cr

est dir

suest M1 M2

vce, block format(%7.3f) rho

test [M1_mean]wa = [M2_mean]wa
*to compare treatment effect coefficients
test [M1_mean]wc = [M2_mean]wc


*-------------------------end example-----------------------
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index