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

# Re: st: marginal effects with interaction term gologit2

 From Richard Williams To statalist@hsphsun2.harvard.edu, statalist@hsphsun2.harvard.edu Subject Re: st: marginal effects with interaction term gologit2 Date Wed, 01 May 2013 10:25:55 -0500

This is an annoying limitation of gologit2. Unfortunately every time I try to change it I run into problems. Factor variables and the techniques gologit2 uses to impose proportionality constraints don't get along too well together.
```
```
You might check out the "do it yourself marginal effects" approach outlined on slides 28-30 of
```
http://www3.nd.edu/~rwilliam/stats/Margins01.pdf

```
I haven't tried it, but I think you would just have to add a few more lines to also compute the interaction terms when dummy = 0 and dummy = 1.
```
```
You may also be able to do things more directly with the adjust or margins command. It is pretty easy when the dummy = 0. Just set both the dummy and the interaction to 0. When dummy = 1, it is probably harder, although perhaps not so hard if you are willing to use MEMs rather than AMEs.
```
```
Whatever you do -- to make sure you did it right, try running a model with ologit and then run the same model in gologit2 using the -pl- option. If the marginal effects are the same then hopefully you have done it right.
```
At 08:12 AM 5/1/2013, cstrobach@aol.com wrote:
```
```Dear Statalister,

```
I am using the command gologit2 to estimate a generalized ordered logit model. My dependent variable has three outcomes. My independent variables are a continuous variable(c), a dummy (D), an interaction term of both and some other control variables. As gologit2 does not allow the use of factor variables, I created the interaction term as c*D. Now I would like to obtain marginal effects using margeff, however this will not provide meaningful results with respect to the interaction term.
```How could I proceed to obtain marginal effects?

Best regards,
Christina

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/
```
```
-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME:   (574)289-5227
EMAIL:  Richard.A.Williams.5@ND.Edu
WWW:    http://www.nd.edu/~rwilliam

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/
```