Thanks Marteen, I tried it but it does not give me the p-value of the
test that tests that the difference in the mean of price of foreign
and domestic is equal or not to zero?
Do you see my point? (or may be I didn't see where to look at the significance).
could you please let me know?
Best regards,
Nirina
On 12/3/06, Maarten buis <[email protected]> wrote:
--- 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/
*
* 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/