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: variable algorithm
From
Jet <[email protected]>
To
[email protected]
Subject
st: variable algorithm
Date
Sun, 13 Feb 2011 11:12:40 -0500
Dear Statalisters:
I am to convert nine variables into a new variable with three
categories ( X1 X2 .... X9, each variable coded 0, 1, 2 3, thus
ranging from 0-27). The rules of converting into into three categories
are as follows:
Category 1: MDD if X1 or X2 >=2 AND 5 or more other variables >=2;
Category 2: OTHER if X1 or X2 >=2 AND 2, 3, 4 variables >=2;
Category 3: NEITHER if neither of the above conditions are met.
thank you very much.
Jet
*
* 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/