Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down at the end of May, and its replacement, **statalist.org** is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
Urmi Bhattacharya <ub3@indiana.edu> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: Marginal effect at each category of dependent variable after ologit using margins command |

Date |
Sat, 27 Aug 2011 16:47:58 +0530 |

Hi Tirthankar, It worked! Thank you so much. Best On Sat, Aug 27, 2011 at 11:35 AM, Tirthankar Chakravarty <tirthankar.chakravarty@gmail.com> wrote: > Note that by default -margins- computes the average marginal effects, > and -mfx- computes marginal effect at the means of the covariates. > Here are the equivalent commands: > > /*******************************/ > webuse fullauto, clear > ologit rep77 foreign length mpg > mfx, predict(outcome(1)) > ologit rep77 i.foreign length mpg > margins, dydx(*) atmeans predict(outcome(1)) > /*******************************/ > > T > > On Fri, Aug 26, 2011 at 9:30 PM, Urmi Bhattacharya <ub3@indiana.edu> wrote: >> Dear Statalisters, >> >> I am using Stata, version 11.2 on Mac. I am estimating the following >> ordered logit >> >> ologit test_math_score child_female age icompl_grade logmpc urban >> father_edu mother_edu scstobs other_caste muslim num_mixedgrade_s >> >> After that, I am interested in the marginal effect of the explanatory >> variables on the probability of each category of the dependent >> variable test_math_score ( It has 4 categories). >> >> As instructed in Cameron and Trivedi ( Microeconometrics using Stata), >> I do the following: >> >> mfx, predict (outcome(1)) >> >> This gives me the marginal effect of the explanatory variables on the >> probability of test_math_score =1 >> >> But how do I do the same thing using the margins command? >> >> Any suggestions would be helpful. >> >> Best >> >> Urmi Bhattacharya >> * >> * For searches and help try: >> * http://www.stata.com/help.cgi?search >> * http://www.stata.com/support/statalist/faq >> * http://www.ats.ucla.edu/stat/stata/ >> > > > > -- > Tirthankar Chakravarty > tchakravarty@ucsd.edu > tirthankar.chakravarty@gmail.com > > * > * For searches and help try: > * http://www.stata.com/help.cgi?search > * http://www.stata.com/support/statalist/faq > * http://www.ats.ucla.edu/stat/stata/ > * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**References**:**st: Marginal effect at each category of dependent variable after ologit using margins command***From:*Urmi Bhattacharya <ub3@indiana.edu>

**Re: st: Marginal effect at each category of dependent variable after ologit using margins command***From:*Tirthankar Chakravarty <tirthankar.chakravarty@gmail.com>

- Prev by Date:
**Re: st: Testing the difference between coefficients with interaction variables** - Next by Date:
**Re: st: Testing the difference between coefficients with interaction variables** - Previous by thread:
**Re: st: Marginal effect at each category of dependent variable after ologit using margins command** - Next by thread:
**Re: st: Marginal effect at each category of dependent variable after ologit using margins command** - Index(es):