Statalist The Stata Listserver


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

Re: st: wald test


From   Richard Williams <[email protected]>
To   [email protected]
Subject   Re: st: wald test
Date   Sun, 21 Jan 2007 21:50:55 -0500

At 09:10 PM 1/21/2007, Joseph Coveney wrote:
Stata reports F statistics after -regress- (linear models) when testing
multiple predictors jointly.  I'm not sure why you'd want a chi-square test
statistic if you can obtain an F statistic, but you can use -glm- in order
to obtain the chi-square statistic and associated p-value if you're working
with linear models.  It's illustrated below.

Joseph Coveney

sysuse auto
regress price mpg headroom trunk
test mpg headroom trunk // F statistic
glm price mpg headroom trunk, nolog
test mpg headroom trunk // chi-square statistic
exit
I just learned something new. :) Also see

http://www.stata.com/support/faqs/stat/wald.html

As it points out,

chi-squared = (numerator degrees of freedom) * F

So, using Joseph's example, in the regress command F( 3, 70) = 7.46. Multiply by 3 and you get 22.38. When you run the test command after glm, you indeed get chi2( 3) = 22.38.


-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
FAX: (574)288-4373
HOME: (574)289-5227
EMAIL: [email protected]
WWW (personal): http://www.nd.edu/~rwilliam
WWW (department): http://www.nd.edu/~soc
*
* 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