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


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
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, federico.tedeschi@univr.it 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index