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

st: RE: Ploting Predicted Probability for Ologit


From   "Scott Merryman" <[email protected]>
To   <[email protected]>
Subject   st: RE: Ploting Predicted Probability for Ologit
Date   Sat, 27 Nov 2004 07:37:51 -0600

Phuong,

You can use -prgen- to generate the predicted and cumulative predicted
probabilities (-prgen- is part of J. Scott Long's -spostado- package).  For
example:


. use http://www.stata-press.com/data/lfr/ordwarm2.dta, clear
(77 & 89 General Social Survey)

. qui  ologit warm yr89 male white age ed prst

. prgen age, from(20) to(80) gen(prob) x(male = 0 yr89 = 1) ncases(13)

ologit: Predicted values as age varies from 20 to 80.

         yr89       male      white        age         ed       prst
x=          1          0   .8765809  44.935456  12.218055  39.585259

. twoway  line probs* probx, title(Cumulative Probabilities)

. twoway  line probp* probx, title(Predicted Probabilities)


Hope this helps,
Scott


> -----Original Message-----
> From: [email protected] [mailto:owner-
> [email protected]] On Behalf Of Phuong Nguyen
> Sent: Friday, November 26, 2004 7:11 PM
> To: [email protected]
> Subject: st: Ploting Predicted Probability for Ologit
> 
> Hi there,
> 
> I wonder if you know the way to plot predicted probablity for ologit
> regression? I followed chapter 5 in Long's book (Regression models for
> categorical and limited dependent variables). As for now, I am able to
> calculate all marginal probabilities at min, max, and average values
> but I can't produce predicted and cummulative probabilities graphs as
> in Figure 5.3.
> 
> thanks ,
> Phuong
> *
> *   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/


*
*   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