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

st: specify freq criteria for rmean


From   "Garrard, Wendy M." <[email protected]>
To   <[email protected]>
Subject   st: specify freq criteria for rmean
Date   Tue, 7 Dec 2004 19:52:25 -0600

I need to compute average scale scores for individual records. The row
means command [rmean] will do this, but I can't figure out how to
specify minimum frequency criteria (e.g., compute an average score only
if 6 or more columns have data) as part of the [rmean] command.

For now I'm working around this by using [robs] to yield a second
variable which, in turn, is used as the minimum criteria for the [rmean]
calc.

But, I suspect there is a simpler Stata solution that doesn't entail
creating the extra [robs] variable. For example, in SPSS this would be
done in one step by using [MEAN.6(var1 var2 var3 ... var8)]. Can someone
point me in the right direction?

Thanks,
wg
~~~~~~~~~~~~~~~~~~~~~
Wendy M. Garrard
Vanderbilt University


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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