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

Re: st: likelihood ratio test error message


From   Richard Williams <[email protected]>
To   [email protected], <[email protected]>
Subject   Re: st: likelihood ratio test error message
Date   Fri, 05 Mar 2004 22:25:45 -0500

At 09:11 PM 3/5/2004 -0600, Rivera, Semilla  M. wrote:
Hello,

I am attempting to run a lrtest in STATA and get the following error message. What can I do?

Thank you.
Semilla Rivera

. lrtest, using (1)

observations differ: 2098 vs. 2216
r(498);
I think it probably means that the samples used for your 2 models are not the same. Perhaps adding some variables caused some cases to drop out? If so, a possible solution might be something like

logit y x1 x2 x3 x4
estimates store model1
logit y x1 x2 if e(sample)
estimates store model2

That is, run the model with the most missing cases first, and then restrict the subsequent models to those cases.


-------------------------------------------
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