Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[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 <[email protected]>
To
[email protected]
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 <[email protected]> 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/