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: Error message when trying to regression model with eststo prefix.


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Error message when trying to regression model with eststo prefix.
Date   Mon, 11 Feb 2013 12:58:50 +0000

It looks to me as if you are confused between the old -xi:- syntax and
the new factor variable syntax. -xi:- is not needed in a modern Stata.

-eststo- is part of the -esttab- package from SSC/SJ,  as you are
asked to make clear. But I suspect the main problem here is confusion
over factor variables.

Nick

On Mon, Feb 11, 2013 at 12:38 PM, Amal Khanolkar <Amal.Khanolkar@ki.se> wrote:

> I'm trying to run the regression model below. I get an error message that says 'factor variables' not allowed.
>
> This is quite strange, given that I ran the exact same regression model last week and had no problems! Can anyone tell me what's going wrong?
>
> . eststo: xi: logistic verypreterm i.ethnicity2 sex byear ib3.magecat i.parity if education!=. & famsit_new2!=. & smoke1!=. & multibirth==1, vce (robust)
> i.ethnicity2      _Iethnicity_1-22    (naturally coded; _Iethnicity_1 omitted)
> i.parity          _Iparity_1-3        (naturally coded; _Iparity_1 omitted)
> factor variables not allowed
> r(101);
> end of do-file
*
*   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