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
basis of calculation increase progressivelyDear Stata users, I want to forecast demand of labor from 2019 to 2050. The basic formula is Et = E…
Adding the average of a variable as a new categoryHi, My apologies if this has been asked before, I'm just sure how to explain it, so I'm showing the…
Problem frames: use identical variables with different observations of two framesHello everyone I'm trying to calculate the average price-to-book ratio of dividend-paying companies…
Differentiating between different types of farmers - how can I find out exactly how many?Hi Statalist! I was wondering if anyone could help me, I am new to Statalist and I can’t seem to fi…
Dynamic panel quantile regression with fixed effectsHi all, I am studying the impact of quality of institutions on carbon emissions. I would like to kn…
Subscribe to:
Post Comments (Atom)
0 Response to code for classifying participants based on complex criteria on a 9-item scale
Post a Comment