Statalist


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

Re: st: AW: Interaction with squared variable


From   Nick Winter <[email protected]>
To   [email protected]
Subject   Re: st: AW: Interaction with squared variable
Date   Tue, 13 Oct 2009 11:28:50 -0400

I can reproduce this with the auto dataset. Seems like something for technical support...


. regress rep78 i.foreign c.weight c.weight#c.weight i.foreign#(c.weight#c.weight)

<<model estimation output omitted>>

. oprobit rep78 i.foreign c.weight c.weight#c.weight i.foreign#(c.weight#c.weight)

invalid interaction specification;

multiple 'o' operators attached to a single variable are not allowed within an interaction specification{p_end}
r(198);


Nick Winter



Giuseppe Cappelletti wrote:
This is the message I get when I use the command ( oprobit  y
i.gender c.x  c.x#c.x  i.gender#(c.x#c.x) )
"invalid interaction specification;
multiple 'o' operators attached to a single variable are not allowed
within an interaction specification{p_end}"

The same command works if I use a linear model that is regress y
i.gender c.x  c.x#c.x  i.gender#(c.x#c.x).

Thanks  in advance

Giuseppe

<>

" but it does not work".


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



HTH
Martin
*
*   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/

--
--------------------------------------------------------------
Nicholas Winter                                 434.924.6994 t
Assistant Professor                             434.924.3359 f
Department of Politics                  [email protected] e
University of Virginia          faculty.virginia.edu/nwinter w
PO Box 400787, 100 Cabell Hall
Charlottesville, VA 22904

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