Statalist


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

st: RE: logistic problem with observation


From   "Steichen, Thomas J." <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: RE: logistic problem with observation
Date   Mon, 4 May 2009 12:28:13 -0400

Tab works with character variables but logistic requires numeric variables; is this the problem here?

-----------------------------------
Thomas J. Steichen
[email protected]
-----------------------------------

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of moleps islon
Sent: Monday, May 04, 2009 12:16 PM
To: [email protected]
Subject: st: logistic problem with observation

Dear listers,
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.


Any ideas-why?
*
*   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/

CONFIDENTIALITY  NOTE:  This e-mail message, including any attachment(s), contains information that may be confidential, protected by the attorney-client or other legal privileges, and/or proprietary non-public information. If you are not an intended recipient of this message or an authorized assistant to an intended recipient, please notify the sender by replying to this message and then delete it from your system. Use, dissemination, distribution, or reproduction of this message and/or any of its attachments (if any) by unintended recipients is not authorized and may be unlawful.

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index