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   Clive Nicholas <clivelists@googlemail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Constructing a variable from standard deviations
Date   Mon, 22 Nov 2010 20:59:35 +0000

Maarten buis replied:

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

Tried that as well:

. // specify the model
. ml model lf mynormal_lf                            ///
>   (mu: xi: mpg = weight displacement foreign i.rep78) ///
>   (ln_sigma: xi: i.rep78)
variable xi not found
r(111);

but Stata 9.2 clearly doesn't like where -xi:- is placed in this code.
Oh well, I'll generate the dummies myself.
-- 
Clive Nicholas

[Please DO NOT mail me personally here, but at
<clivenicholas@hotmail.com>. Please respond to contributions I make in
a list thread here. Thanks!]

"My colleagues in the social sciences talk a great deal about
methodology. I prefer to call it style." -- Freeman J. Dyson.
*
*   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