Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

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


From   Urmi Bhattacharya <[email protected]>
To   [email protected]
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
<[email protected]> 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 <[email protected]> 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
> [email protected]
> [email protected]
>
> *
> *   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index