[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

From |
Reka Sundaram-Stukel <rsundara@wisc.edu> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
st: graph |

Date |
Sun, 6 Apr 2003 23:09:05 -0500 |

Dear Statalist,

I am a new stata user so would appreciate any help. I estimated an ordered probit model and I would like to create a graph that has probability on the y axis and land on the x axis holding all values (except land) at their mean levels. I know one can do this easily in gauss using the following code. Does any one have any ideas how to do this in STATA. I have tried using predict and plotting it, but it generates the probabilities for each observation.

Thanking you in advance,

Reka

Here is the gauss code:

library pgraph;

/*estimated critical values--first critical vlaues normalized to zero??*/

c1= -0.28;

c2= 0.01;

/*mean/median values for control variables*/

let z = { means of explanatory variables except land };

/*Estimated coefficients for z variables*/

let beta = { coeffs of z variables };

beta_t=0.00652; /*coefficient for land varialbe*/

t=seqa(0.5,1,100);

beta_x=beta_t*t + beta'z;

probc1=cdfn(c1-beta_x);

probc3=cdfnc(c2-beta_x);

probc2=1-probc1-probc3;

xy(t,probc1~probc2~probc3);

saved(

Thanking you in advance

Reka Sundaram-Stukel

Reka Sundaram-Stukel

Agriculture And Applied Economics

320 Taylor Hall

**Follow-Ups**:**Re: st: graph***From:*Rufus Browning <browning@sfsu.edu>

- Prev by Date:
**st: xtlogit** - Next by Date:
**st: Variable Name** - Previous by thread:
**st: xtlogit** - Next by thread:
**Re: st: graph** - Index(es):

© Copyright 1996–2016 StataCorp LP | Terms of use | Privacy | Contact us | What's new | Site index |