Bookmark and Share

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


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

Re: st: Constructing a variable from standard deviations


From   Maarten buis <[email protected]>
To   stata list <[email protected]>
Subject   Re: st: Constructing a variable from standard deviations
Date   Mon, 22 Nov 2010 19:55:03 +0000 (GMT)

--- Clive Nicholas wrote:
> on my Stata 9.2, this code choked at
>
> reg mpg weight displacement foreign i.rep78
> i:  operator invalid
> r(198);
>
> and at all other parts of the code which feature -i.rep78-

Correct, I used Stata's new factor variable notation. This 
is new to Stata 11, so Stata 9 should choke on that. You
can try and prefix the estimation commands with -xi:-. I 
haven't tested it but that should get you close to a working
code.

-- Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://www.maartenbuis.nl
--------------------------


      

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index