[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: geometric mean saved results
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: