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/