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: No observations
From
Nick Cox <[email protected]>
To
[email protected]
Subject
Re: st: No observations
Date
Thu, 20 Sep 2012 10:46:26 +0100
The error messages you have received tell you what is going on. -y- is
a string variable. If it is really numeric,
. destring y, replace
or failing that
. encode y, gen(Y)
will work. Otherwise,
. tab y
to see what you have.
Nick
On Thu, Sep 20, 2012 at 10:38 AM, Shittu, Aminu <[email protected]> wrote:
> I am trying to run a univariable logistic regression using
>
> -logistic x y-
>
> and the response was "no observations." Could anyone help sort this one out? Furthermore, I am not sure if I am doing it right with
>
> -logistic x i.y-
>
> which says "may not use time-series operators on string variables."
*
* 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/