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)


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.



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

*   For searches and help try:

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