Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: ml command and chi-square tests


From   jpitblado@stata.com (Jeff Pitblado, StataCorp LP)
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: ml command and chi-square tests
Date   Fri, 25 Mar 2005 17:45:54 -0600

Sorry for the repost, I forgot about the subject.

Richard Williams <Richard.A.Williams.5@nd.edu> asks why -ml- will not perform
a likelihood ratio test when constraints are specified:

> According to the documentation, the -ml- command will provide a Wald test 
> (rather than an LR test) when you specify robust, cluster or 
> pweights.  However, I am finding that it also provides a Wald test when you 
> use the -constraint- option.  Why?  This isn't mentioned in the 
> documentation.  Is there some mathematical reason for this, or is it a 
> bug/limitation of the software, or what?  The log likelihood is being 
> reported for the constrained model (not a pseudo log likelihood) so I don't 
> understand why it can't give me a LR chi-square instead of a Wald 
> chi-square for the model.

This restriction was added when Stata 8.1 was released (01jul2003).  It was
added to prevent -ml- from producing an invalid likelihood ratio test, given
its theoretical requirements and the possibility for boundary conditions
imposed by constraints (see the discussion of the likelihood ratio test for
alpha=0 in [R] nbreg).

We considered it safer to produce the Wald test when constraints are supplied
than try to recover from all the possible cases where the standard likelihood
ratio test is not applicable.

As Richard points out, you can still use the -lrtest- command to produce a
likelihood ratio test.

--Jeff
jpitblado@stata.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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index