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

Re: st: syntax for summated index


From   Ian Watson <[email protected]>
To   Annie Tuttle <[email protected]>
Subject   Re: st: syntax for summated index
Date   Thu, 19 May 2005 14:25:45 +1000

egen mysum = rsum(v1-v5)

or

egen mysum = rsum(v1 v3 v5 v7 v9)

note that missings sum to 0 so you might need to take account of this
if individual variables have 0 in their scores.

Regards

Ian


Thursday, May 19, 2005, 1:07:20 PM, you wrote:

AT> I have a question about how to create a summated index.  When I use the
AT> help option, nothing comes up.  I googled stata summated index and it
AT> returned a command called optifact; however, when I entered the term in
AT> the help box, nothing was returned.  Please help.  Example syntx would be
AT> greatly apprecieated.  

AT> The summated index will be created from five items; each item has the
AT> same four response categories.

AT> Thanks so much.


AT> *
AT> *   For searches and help try:
AT> *   http://www.stata.com/support/faqs/res/findit.html
AT> *   http://www.stata.com/support/statalist/faq
AT> *   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