Bookmark and Share

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: logistic regression and factor variables


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: logistic regression and factor variables
Date   Mon, 11 Apr 2011 15:46:09 +0100 (BST)

--- Rebecca Coates wrote:
> > I am having trouble with 'logit' and using factor variables. 
> > When I run this do file>
<snip>
> > logit plans2 female2 i.sector1 i.racode ib4.generation4 ///
> > i.d51  ib4.edum2 ib4.eduf2 ib4.mother_asco5             ///
> > ib5.father_asco5 [iweight=weight1]
<snip>
> > I receive this error code from stata:
> > 
> > factor variables not allowed
> > r(101);
> >
> > HOWEVER, when I simply cut and past the following line of
> > syntax out of my do-file into the stata command field and
> > run it from there <snip> It runs fine and produces the
> > expected output of a logistical regression table. 

--- On Mon, 11/4/11, [email protected] wrote:
> you could try:
> 
> xi: logit plans2 female2 i.sector1 i.racode ib4.generation4
<snip>

That will not work as ib4.varname is not vallid syntax for 
-xi-. 

Moreover, I would not want to leave this error go
un-investigated, as it could be a sign that there is a 
serious problem with Rebecca's Stata installation. However,
this is more a case for Stata's tech-support:
<http://www.stata.com/support/tech-support/>

Hope this helps,
Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://www.maartenbuis.nl
--------------------------

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


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index