Bookmark and Share

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

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

Re: st: Constructing a variable from standard deviations

From   Maarten buis <>
To   stata list <>
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

-- Maarten

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


*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index