Statalist The Stata Listserver


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

Re: st: Get the level of significance for the difference of two means


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: Get the level of significance for the difference of two means
Date   Sun, 3 Dec 2006 22:07:17 +0000 (GMT)

--- Nirina F <[email protected]> wrote:
> could you please help me how do I Get the level of significance for
> the difference of two means?

Nirina:
Say you wanted to know the difference in mean price of foreign and
domestic cars. You can type -regress price foreign- and the parameter
of foreign will be the difference and the p-value will be the level of
significance for a t-test of the null hypothesis that that difference
is zero. See example below:
HTH,
Maarten

*----------- begin example -----------
sysuse auto, clear
table foreign, c(mean price) format(%9.2f)
reg price foreign
adjust, by(foreign)
*------------ end example ------------


-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------

Send instant messages to your online friends http://uk.messenger.yahoo.com 
*
*   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