Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: geometric mean saved results

From   Russell Dimond <>
Subject   Re: st: geometric mean saved results
Date   Wed, 18 Sep 2002 14:53:43 -0500

There may well be other issues here, but the immediate problem is easy to solve. Just take the quotes out of the definition of gmeanfp3:

local gmeanfp3= r(mean_g)

Otherwise gmeanfp3 is replaced by its value prior to this line, which is nothing. So Stata sees

local = r(mean_g)

and gives error message you describe. Hope this helps.


At 09:49 AM 9/18/2002 -0700, you wrote:

Subject: st: geometric mean saved results

I'm having a great deal of difficulty trying to do
anovas, ranksums, regressions, etc. on the geometric
mean of a continuous variable--just capturing the
saved results following a means command ofcourse does
not work, as below with ranksum:

.quietly means fp3
.local `gmeanfp3' = r(mean_g)
.ranksum `gmeanfp3' if `1'~=9999, by(`1')

which gives me an error message of "_= invalid name".

Any suggestions at all would be much appreciated.
*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index