Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: logit: classification of cases


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: logit: classification of cases
Date   Wed, 19 Nov 2003 19:26:31 -0000

I guess you want something a little like this. 

. logit foreign mpg 

. predict predict 

. gen class = cond(predict >= .5, "+", "-") + 
   " " + 
   cond(foreign != 0, "D", "~D") if predict < . 

Nick 
[email protected] 

> This is Dirk-Jan Koch from the Institute of Social Studies 
> in the Hague. I
> have one simple question. After having operated the logit or probit
> command, I use lstat to have a classification matrix. In 
> addition, I would
> like to see which cases are classified where in the matrix. 
> Could anybody help me with that?

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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