Bookmark and Share

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]

Re: st: collinearity error with xtmixed


From   Tim <lists@timbp.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: collinearity error with xtmixed
Date   Thu, 07 Mar 2013 20:04:31 +1100

I just noticed another problem. Where I said omitting the omitted variable in regress with my own constant gave reasonable results, in fact the ANOVA and R-squared are not reasonable, although the coefficient estimates are.

On 7/03/2013 19:49, Tim wrote:

Omit that variable from the command myself instead of letting Stata drop it, and the results are reasonable again: . regr factc i.baseline i.onemonth c.mth i.exent i.predischarge#1.exent i.exent#(i.onemonth) , noc
> ons

Source | SS df MS Number of obs = 907 -------------+------------------------------ F( 6, 901) = 2965.49 Model | 7760795.24 6 1293465.87 Prob > F = 0.0000 Residual | 392991.066 901 436.172104 R-squared = 0.9518 -------------+------------------------------ Adj R-squared = 0.9515
       Total |   8153786.3   907  8989.84157           Root MSE = 20.885


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index