-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/c2019/w1/depression icd11 #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
3f1fd0c
c1ff3c4
17ee222
708fca8
4541217
c4b3503
52f053f
fa4a346
ce03811
0260d8d
31f5bb1
7c8755c
d353d3a
176609c
4c7baa0
f1dcd4e
f12ed31
c089f2b
c0033f2
5c2d427
c6dde11
f367b33
243f8fb
a6ab671
720aa64
08cd03c
ce2fd4a
06ccd54
aa30675
ddaf256
c247b5b
3530cc1
3809f6c
9310b9c
10fe6c5
ca7741a
6a8e9ac
1449bed
100c449
948152d
860f0ba
f232eb6
41e5bf6
b5d8d7b
61b06ac
3613d56
db666a6
578ed62
d599b4a
910cf7e
5286fb4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -165,27 +165,41 @@ replace d_crit1 = 1 if q4211==1 | q4213==1 | |
|
|
||
| *#Criterion 2: "The clinical presentation does not fulfil the diagnostic | ||
| *# requirements for a Mixed Episode" | ||
| gen d_crit2 = . | ||
| replace d_crit2 = 0 if (q4233==1 & proxy==2) | q4225_causemed2==1 | ||
| replace d_crit2 = 1 if (q4233!=1 & q4233!=. & proxy==2) | q4225_causemed2!=1 | ||
| *#"NOTE: When `q4225_causemed2` is not selected, its value may be `0` or | ||
| *# 'missing', so only `q4233` is considered to determine whether | ||
| *# this criterion is 'missing'". | ||
| gen d_crit2 =0 | ||
| replace d_crit2 = 1 if q4233!=1 & q4225_causemed2!=1 | ||
| replace d_crit2 = . if q4233==. & q4225_causemed2==. | ||
|
|
||
| *#Criterion 3: "The episode is not attributable to psychoactive substance use or | ||
| *# to any organic mental disorder" | ||
| gen d_crit3 = . | ||
| replace d_crit3 = 0 if q4224b==1 | (q4224==1 & (q4225_causemed12==1 | q4225_causemed23==1 | q4225_causemed24==1 | q4225_causemed25==1 | q4225_causemed30==1 | q4225_causemed31==1)) | ||
| replace d_crit3 = 1 if (q4224a!=1 & q4224a!=.) | (q4224b!=1 & q4224b!=.) | (q4224==1 & (q4225_causemed12!=1 & q4225_causemed23!=1 & q4225_causemed24!=1 & q4225_causemed25!=1 & q4225_causemed30!=1 & q4225_causemed31!=1)) | ||
| *#"NOTE: When `q4224b==1` it is necessarily the case that `q4224a==1`, | ||
| *# so only `q4224b` out of these two needs to be checked for considering | ||
| *# the criterion negative." | ||
| gen d_crit3= 0 if q4224b==1 | q4225_causemed12==1 | q4225_causemed23==1 | q4225_causemed24==1 | q4225_causemed25==1 | q4225_causemed30==1 | q4225_causemed31==1 | ||
| replace d_crit3 = 1 if (q4224b==2) | (q4225_causemed12!=1 & q4225_causemed23!=1 & q4225_causemed24!=1 & q4225_causemed25!=1 & q4225_causemed30!=1 & q4225_causemed31!=1) | ||
| replace d_crit3=. if q4224==. & q4224a==. & q4224b==. | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The same as before: This section does not follow the criteria stated in the "Explanation" section. I'd rather you tried to code in an equivalent manner, but following those criteria (see lines 124-134, in this commit) Also, make sure the two syntaxes are not equivalent.
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you check whether the two syntaxes were equivalent?
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please @Leafrancia use criteria explained; or if you don't explain why |
||
|
|
||
|
|
||
| *#Criterion 4: "The symptoms cause clinically significant distress or impairment in social, occupational, or other important areas of functioning" | ||
| recode q4214 (1=0) (2=1) (3=1) (4=1) (888=.), gen (q4214_rec) | ||
| recode q4215 (1=1) (2=1) (3=1) (4=0) (888=.), gen (q4215_rec) | ||
| recode q4216 (1=1) (2=1) (3=1) (4=0) (888=.), gen (q4216_rec) | ||
| * Significant impairment. | ||
| recode q4228a (999=.) (888=.), gen (q4228a_rec) | ||
| recode q4228b (999=.) (888=.), gen (q4228b_rec) | ||
| recode q4228c (999=.) (888=.), gen (q4228c_rec) | ||
| recode q4228d (999=.) (888=.), gen (q4228d_rec) | ||
| gen discomfort=. | ||
| replace discomfort=1 if q4228a_rec>=4 | q4228b_rec>=4 | q4228c_rec>=4 | q4228d_rec>=4 | ||
| replace discomfort=0 if q4228a_rec<4 & q4228b_rec<4 & q4228c_rec<4 & q4228d_rec<4 | ||
| replace discomfort=. if q4228a_rec==. & q4228b_rec==. & q4228c_rec==. & q4228d_rec==. | ||
| * To fulfil criterion 4, distress or significant impairment should be present. | ||
| gen d_crit4=. | ||
| replace d_crit4=1 if q4214_rec==1 | q4215_rec==1 | q4216_rec==1 | discomfort==1 | ||
| replace d_crit4=0 if q4214_rec==0 & q4215_rec==0 & q4216_rec==0 & discomfort==0 | ||
|
DaniMori marked this conversation as resolved.
Outdated
|
||
|
|
||
|
|
||
|
|
||
| *#Filling of the three first criteria above (Criterion 1, 2 and 3): | ||
| gen d_crit_123 = . | ||
| replace d_crit_123 = 0 if d_crit1==0 | d_crit2==0 | d_crit3==0 | ||
| replace d_crit_123 = 1 if d_crit1==1 & d_crit2==1 & d_crit3==1 | ||
| replace d_crit_123 = 0 if d_crit1==0 | d_crit2==0 | d_crit3==0 | d_crit4==0 | ||
| replace d_crit_123 = 1 if d_crit1==1 & d_crit2==1 & d_crit3==1 & d_crit4==1 | ||
|
|
||
|
|
||
| *#Criterion 4: "A total of at least five symptoms from the following list should | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This section does not follow the criteria stated in the "Explanation" section. I'd rather you tried to code in an equivalent manner, but following those criteria (see lines 124-134, in this commit)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was it wrong to include proxy==2 btw? I think it would be safer to avoid the proxies from being recoded as "something else"... Are you sure the two syntaxes are not equivalent?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you check whether it was ok or not to include
proxy==2?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Leafrancia please mind this comment and reply