Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: programming question for instrument scoring with weights


From   "Lucea, Marguerite" <mbaty1@son.jhmi.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: programming question for instrument scoring with weights
Date   Thu, 9 Jun 2011 10:16:43 -0400

I'm working on creating a variable that is an instrument score. . . the only issue is that some of the questions are weighted differently than others. I'm not sure how to code for it in STATA.
 
This is the way the scale is scored (19 questions). First, you total the score for 1-19. Then, if they answered "yes" to #2, you add 4pts. If yes to #3, add 3 pts. If yes to #4, add 3 pts. If yes to #5, add 2 pts. If yes to #6, add 2pts. If yes to #7, add 2 pts. If yes to #8, add 1 pt. If yes to 9, add 1 pt. If yes to #3a (not in the original totaling), subtract 3 pts. The final result after all these adjustments and weights is the total score. 
  
Any advice would be very welcome!

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index