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

st: RE: specify freq criteria for rmean


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: specify freq criteria for rmean
Date   Wed, 8 Dec 2004 17:48:02 -0000

Nick 
[email protected] 

> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of 
> Garrard, Wendy
> M.
> Sent: 08 December 2004 01:52
> To: [email protected]
> Subject: st: specify freq criteria for rmean
> 
> 
> 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/
> 

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