Statalist


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

AW: st: AW: Interaction with squared variable


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   AW: st: AW: Interaction with squared variable
Date   Tue, 13 Oct 2009 17:32:10 +0200

<> 

I used to think that the expansion of the -fvvarlist- happened
"independently" of the estimation command that requested it...



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Nick Winter
Gesendet: Dienstag, 13. Oktober 2009 17:29
An: [email protected]
Betreff: Re: st: AW: Interaction with squared variable

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/


*
*   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