Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: a question on t-test


From   "Lili Yan" <[email protected]>
To   statalist <[email protected]>
Subject   st: a question on t-test
Date   Fri, 20 Jun 2008 15:57:38 -0500

Hi there,

I need calculate the mean of two groups (say, native cars and foreign
cars) and do a t-test. However, I am not very sure if -lincom- is the
correct command after -mean-. Could anyone please let me know if the
following commands are right?

mean mpg, over(foreign)
lincom [`var']0-[`var']1
di 2*ttail(r(df), abs(r(estimate)/r(se)))

Thanks in advance!

Best,
Lili
*
*   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