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]

From |
"Michael N. Mitchell" <Michael.Norman.Mitchell@gmail.com> |

To |
Statalist <statalist@hsphsun2.harvard.edu> |

Subject |
st: regress with vce(robust) and hascons |

Date |
Mon, 13 Dec 2010 00:42:32 -0800 |

Greetings

. sysuse auto, clear (1978 Automobile Data) . regress price ibn.foreign, vce(robust) hascons Linear regression Number of obs = 74 F( 2, 72) = 165.64 Prob > F = 0.0000 R-squared = 0.0024 Root MSE = 2966.4 ------------------------------------------------------------------------------ | Robust price | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- foreign | 0 | 6072.423 431.2084 14.08 0.000 5212.825 6932.021 1 | 6384.682 553.6754 11.53 0.000 5280.95 7488.413 | _cons | (omitted) ------------------------------------------------------------------------------

. test 0.foreign 1.foreign ( 1) 0bn.foreign = 0 ( 2) 1.foreign = 0 F( 2, 72) = 165.64 Prob > F = 0.0000

. regress price ibn.foreign, hascons Source | SS df MS Number of obs = 74 -------------+------------------------------ F( 1, 72) = 0.17 Model | 1507382.66 1 1507382.66 Prob > F = 0.6802 Residual | 633558013 72 8799416.85 R-squared = 0.0024 -------------+------------------------------ Adj R-squared = -0.0115 Total | 635065396 73 8699525.97 Root MSE = 2966.4 ------------------------------------------------------------------------------ price | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- foreign | 0 | 6072.423 411.363 14.76 0.000 5252.386 6892.46 1 | 6384.682 632.4346 10.10 0.000 5123.947 7645.417 ------------------------------------------------------------------------------ In this case, the omnibus F test matches the test of the equality of the cell means. . test 0.foreign = 1.foreign ( 1) 0bn.foreign - 1.foreign = 0 F( 1, 72) = 0.17 Prob > F = 0.6802 Perhaps someone can help me understand where I am askew in my thinking about this. Many thanks, Michael N. Mitchell Data Management Using Stata - http://www.stata.com/bookstore/dmus.html A Visual Guide to Stata Graphics - http://www.stata.com/bookstore/vgsg.html Stata tidbit of the week - http://www.MichaelNormanMitchell.com * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**Follow-Ups**:**st: RE: regress with vce(robust) and hascons***From:*DE SOUZA Eric <eric.de_souza@coleurope.eu>

**Re: st: regress with vce(robust) and hascons***From:*Richard Goldstein <richgold@ix.netcom.com>

- Prev by Date:
**st: Is a multilevel model appropriate?** - Next by Date:
**RE: st: How to list all the observation meeting the conditions which are the former results?** - Previous by thread:
**st: Is a multilevel model appropriate?** - Next by thread:
**Re: st: regress with vce(robust) and hascons** - Index(es):