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

Re: st: marginal effects for ordered logit

From   Nick Winter <>
Subject   Re: st: marginal effects for ordered logit
Date   Tue, 16 Nov 2004 12:21:29 -0500

My command -oprobpr-, available from SSC, is designed to calculate and graph predicted probabilities after ordered logit and probit, and should handle this case (and more).


At 03:09 PM 11/16/2004 +0000, you wrote:

Dear Aga,

If you had Stata8 you could have used my earlier post:

-twoway function y = exp(-_b[mpg]*x- _b[mpg2]*x^2), range(12 41)
ytitle("odds") xtitle("mpg")- gives you the odds of belonging to a
group versus all `lower' groups.

now you could do something like:

version 7
sysuse auto
gen mpg2 = mpg^2
ologit rep78 mpg mpg2


drop _all
set obs 31
gen mpg =11 + _n
gen odds = exp(_b[mpg]*mpg + _b[mpg2]*mpg^2)

graph odds mpg, c(l)


I forgot the correct -graph- syntax for stata7 to make the pretty, but
this should get you started.

--- <Agnieszka.Markiewicz@e...> wrote:
> Now when I know how to calculate the odds, could
> you help me with finding the right command to make a graph?

*   For searches and help try:
Nicholas Winter 607.255.8819 t
Assistant Professor 607.255.4530 f
Department of Government e
308 White Hall w
Cornell University
Ithaca, NY 14853-4601

* For searches and help try:

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