<>
*************
sysuse auto, clear
reg price for weight c.weight#c.weight for#c.weight#c.weight
*************
should be close to what you want...
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Giuseppe
Cappelletti
Gesendet: Dienstag, 13. Oktober 2009 16:12
An: [email protected]
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/