Statalist


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

Re: st: RE: logistic problem with observation


From   moleps islon <moleps2@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: logistic problem with observation
Date   Mon, 4 May 2009 18:38:53 +0200

Yup. that was the issue. Thx.


On Mon, May 4, 2009 at 6:22 PM, Nick Cox <n.j.cox@durham.ac.uk> wrote:
> Perhaps -sex- is a string variable in your data.
>
> (P.S. look at http://www.stata.com/support/faqs/techsup/sendout.html to
> see the kinds of things to report.)
>
> Nick
> n.j.cox@durham.ac.uk
>
> moleps islon
>
> I encounter the following while doing a univariate logistic regression:
>
> . logistic mors_30 sex
> no observations
> no observations
> r(2000);
>
> . tab sex
>
>        sex |      Freq.     Percent        Cum.
> ------------+-----------------------------------
>          1 |      1,275       48.48       48.48
>          2 |      1,355       51.52      100.00
> ------------+-----------------------------------
>      Total |      2,630      100.00
>
> . tab mors_30 sex
>
>           |          sex
>   mors_30 |         1          2 |     Total
> -----------+----------------------+----------
>         0 |     1,245      1,325 |     2,570
>         1 |        30         30 |        60
> -----------+----------------------+----------
>     Total |     1,275      1,355 |     2,630
>
>
> . logit mors_30 sex
> no observations
> r(2000);
>
> Other variables work beautifully.
>
> *
> *   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/
>

*
*   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   |   What's new   |   Site index