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, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: No observations

From   "Shittu, Aminu" <>
To   "" <>
Subject   Re: st: No observations
Date   Thu, 20 Sep 2012 02:53:23 -0700 (PDT)

Thanks, Nick!


From: Nick Cox <>
Sent: Thursday, September 20, 2012 10:46:26 AM
Subject: Re: st: No observations

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.


On Thu, Sep 20, 2012 at 10:38 AM, Shittu, Aminu <> 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:
* ;

*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index