Statalist


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

st: AW: Interaction with squared variable


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: Interaction with squared variable
Date   Tue, 13 Oct 2009 16:11:52 +0200

<> 

" but it does not work".


What exactly does not work? Note the FAQ onthis point...



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Giuseppe
Cappelletti
Gesendet: Dienstag, 13. Oktober 2009 16:12
An: statalist@hsphsun2.harvard.edu
Betreff: st: Interaction with squared variable

I would like to estimate an orderd probit model with the following
specification:

Prob(y=1) = x + a*gender + b*x + c*x^2 + d*gender*x^2

I tried the following command:

oprobit  y  ///
   i.gender   ///
   c.x   ///
   c.x#c.x  ///
   i.gender#(c.x#c.x)

but it does not work. After the estimation I would like to compute the
marginal effect (considering both the squared and interaction term).

Thanks in advance

Giuseppe

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index