I'm looking for code to classify participants with depression using more complicated diagnostic criteria than I've used before with STATA.
The scale is the 9-item PHQ 9. Each item (phq_1 through phq_9) has a value of 0 - 3.
I need to identify participants based on meeting the following criteria:
Major Depression: phq_1 or phq_2 of at least 2 AND at least five items phq_1 through phq_9 of at least 2. (But if phq_9 is 1 or higher, it counts towards the five items).
Other Depression: phq_1 or phq_2 of at least 2 AND two, three, or four items phq_1 - phq_9 of at least 2. (Again, if phq_9 is 1 or higher, it counts towards the two, three or four items).
I would really appreciate tips or code on how to express these criteria. I'm stuck at:
gen mds = .
replace mds = 1 if
Thank you for any suggestions.
Related Posts with code for classifying participants based on complex criteria on a 9-item scale
TAbleHi, How can I make a table which includes the percent of cases for each category? (I'm working with…
How do I use STATA to do simulations for a Bernoulli trial?Suppose I have a Bernoulli trial that has a success rate of 0.05, and I run it for 30 times. Then I …
need help using DM (dynamic multiplier) for exogenous variables in PVAR's impulse responseHello, I am working with pvar model, where I would like to see the response of (gdp cpi credit) to i…
TableHi, How can I make a table which includes the percent of cases for each category? (I'm working with…
Question about calculating rates of conversion using panel dataI have a question about efficiently calculating rates using panel data. Specifically, I have a datas…
Subscribe to:
Post Comments (Atom)
0 Response to code for classifying participants based on complex criteria on a 9-item scale
Post a Comment