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

RE: st: likelihood ratio test error message


From   "Rivera, Semilla M." <[email protected]>
To   <[email protected]>
Subject   RE: st: likelihood ratio test error message
Date   Fri, 5 Mar 2004 21:28:32 -0600

Thanks so much, Richard.  I will try this.  :)
 
Semilla

	-----Original Message----- 
	From: Richard Williams [mailto:[email protected]] 
	Sent: Fri 3/5/2004 9:25 PM 
	To: [email protected]; [email protected] 
	Cc: 
	Subject: Re: st: likelihood ratio test error message
	
	

	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/
	

<<winmail.dat>>




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index