Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: comparison of coefficients of the same variable across two log-linear models with t-test


From   James Bernard <jamesstatalist@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: comparison of coefficients of the same variable across two log-linear models with t-test
Date   Mon, 9 Dec 2013 15:12:34 +0800

Hi all,

I wonder if equality of coefficient of the same variable across two
similar models  that are run on two different samples can be tested
using t-test.

Y=a+b1X (run on sub-sample 1)
Y=a+b2X (run on sub-sample 2)


I understand that -suest- can be used in Stata to do this. But, the
issue is that -suest- does not work with -xtpoisson- giving this
message:

unable to generate scores for model big
suest requires that predict allow the score option
r(322);

which I guess is an internal problem of this command.

So, I wonder if I can use a t-test (more precisely, a Welch's t-test)
to compare these two coefficients (b1 and b2). The model gives me the
coefficients, standard eroor, sample size and I can use t-test.

Thanks,
James
*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index