# RE: st: marginal effects for ordered logit

 From "Markiewicz, Agnieska" <[email protected]> To <[email protected]> Subject RE: st: marginal effects for ordered logit Date Tue, 16 Nov 2004 17:12:02 +0100

```
Dear Marteen,

I just tried your formula with stata 8 but I get a strange message
after:

Any idea what's wrong?

Aga
From: [email protected]
[mailto:[email protected]] On Behalf Of maartenbuis
Sent: Tuesday, November 16, 2004 4:09 PM
To: [email protected]
Subject: Re: st: marginal effects for ordered logit

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

preserve

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

graph odds mpg, c(l)

restore

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:
*   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/
```