Skip to content
Open
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
3f1fd0c
Template version of description despression ICD10 2011W3
Leafrancia Sep 14, 2022
c1ff3c4
Description depression ICD10 - first draft
Leafrancia Sep 15, 2022
17ee222
Template version of description despression ICD10 2011W3
Leafrancia Sep 14, 2022
708fca8
Description depression ICD10 - first draft
Leafrancia Sep 15, 2022
4541217
Merge branch 'bugfix/depression-c2011w3' of https://github.com/CCOMS-…
DaniMori Sep 15, 2022
c4b3503
Review of the bugfix of Depression-ICD10 in c2011w3 (#11)
DaniMori Sep 20, 2022
52f053f
Contact person updated - resolved issue #9
Leafrancia Sep 20, 2022
fa4a346
Review "number of valid cases" per variable #10 - Resolved issue of u…
Leafrancia Sep 22, 2022
ce03811
Instert pdf outcome
Leafrancia Sep 22, 2022
0260d8d
Sets column markdown wrapping to 80 for the description document.
DaniMori Sep 22, 2022
31f5bb1
Code aligned (for readability)
DaniMori Sep 22, 2022
7c8755c
Syntax for the ICD11 depression variables - first attempt
Leafrancia Oct 5, 2022
d353d3a
Fix and precise the ICD-11 criteria and symptoms
Leafrancia Oct 6, 2022
176609c
No severity variable here
Leafrancia Oct 6, 2022
4c7baa0
Syntax for ICD11, cohorte 2019 wave 1 - First proposition
Leafrancia Oct 14, 2022
f1dcd4e
Deletes files that should not belong to this branch
DaniMori Oct 18, 2022
f12ed31
Proposition of a syntax - ICD11 for cohorte 2019 wave 1
Leafrancia Oct 18, 2022
c089f2b
Delete the wrong version
Leafrancia Oct 18, 2022
c0033f2
Merge branch 'feature/c2019/w1/depression-icd11' of https://github.co…
Leafrancia Oct 18, 2022
5c2d427
Add proxy variable in "variables to keep" for the outcome's creation
Leafrancia Oct 18, 2022
c6dde11
review the comments and changes requested on Github
Leafrancia Oct 20, 2022
f367b33
Columns arrangement
Leafrancia Oct 20, 2022
243f8fb
Table is reformatted to avoid that the variable names are cut
DaniMori Oct 21, 2022
a6ab671
Comments reviewed
Leafrancia Oct 21, 2022
720aa64
Add citation
Leafrancia Oct 21, 2022
08cd03c
Restores table
DaniMori Oct 21, 2022
ce2fd4a
Resolves conflict in table reformatting
DaniMori Oct 21, 2022
06ccd54
Restores expression in `bibliography` field in yaml header
DaniMori Oct 21, 2022
aa30675
Minor changes reviewed and changed
Leafrancia Oct 31, 2022
ddaf256
Bibliography file changed to automatic path
Leafrancia Oct 31, 2022
c247b5b
Revisions of the code according to the acclamation of doubts, deletio…
Leafrancia Nov 10, 2022
3530cc1
Restores "variable information" table format
DaniMori Nov 11, 2022
3809f6c
Avoids the ambiguous interpretation "reduced fatigue"
DaniMori Nov 11, 2022
9310b9c
Revision of the name of criteria
Leafrancia Nov 11, 2022
10fe6c5
Arranging the error message about conflict
Leafrancia Nov 11, 2022
ca7741a
Review symptoms organisation
Leafrancia Nov 11, 2022
6a8e9ac
Arranging symptoms and clusters names
Leafrancia Nov 11, 2022
1449bed
Restores "variable information" table format
DaniMori Nov 14, 2022
100c449
Formats with indentation the list of symptom clusters.
DaniMori Nov 14, 2022
948152d
Aligns code, for clarity of interpretation
DaniMori Nov 14, 2022
860f0ba
Reflows all comments in syntax to a width of 80 characters maximum.
DaniMori Nov 14, 2022
f232eb6
Reorders criteria 4 and 5 to match the order in the "Explantion" section
DaniMori Nov 14, 2022
41e5bf6
Adds headers in the syntax for the three symptom clusters.
DaniMori Nov 14, 2022
b5d8d7b
Adding information about critera
Leafrancia Nov 15, 2022
61b06ac
Clarification of symptoms
Leafrancia Nov 16, 2022
3613d56
Correcting error in the interpretation of a criteria
Leafrancia Nov 30, 2022
db666a6
Arranging code according to double codification (first attempt)
Leafrancia Nov 30, 2022
578ed62
Arranging criterion 3
Leafrancia Dec 5, 2022
d599b4a
Clarification of the choice of code used to name the criteria and cod…
Leafrancia Dec 15, 2022
910cf7e
Wraps comment aout `d_crit_123` properly
DaniMori Dec 16, 2022
5286fb4
Put comments in their right place
Leafrancia Dec 16, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 14 additions & 13 deletions doc/outcomes/cohorte_2019/ola_1/Description_depression_ICD11.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -174,16 +174,17 @@ replace d_crit2 = . if q4233==. & q4225_causemed2==.
gen d_crit3 = .
Comment thread
DaniMori marked this conversation as resolved.
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."
*#"NOTE: The criterion named "d_crit123" includes all the three exclusion criteria *# of the ICD11. Those three criteria are coded in different points because
Comment thread
Leafrancia marked this conversation as resolved.
Outdated
*# they do not take into account a minimum threshold of symptoms as the two *# other bellow (Criterion 4 and Criterion 5)."


*#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
Comment thread
DaniMori marked this conversation as resolved.

*#"NOTE: When `q4224b==1` it is necessarily the case that `q4224a==1`,
Comment thread
Leafrancia marked this conversation as resolved.
Outdated
*# so only `q4224b` out of these two needs to be checked for considering
*# the criterion negative."

*#Criterion 4: "A total of at least five symptoms from the following list should
*# be present."
Expand Down Expand Up @@ -278,21 +279,21 @@ replace d_s10 = 1 if q4222e==1
egen d_symptot = rowtotal (d_s1 d_s2 d_s3 d_s4 d_s5 d_s6 d_s7 d_s8 d_s9 d_s10), missing

*#"To fulfill Criterion 4, at least five symptoms should be present".
gen d_crit_5 = .
replace d_crit_5 = 0 if d_symptot<5
replace d_crit_5 = 1 if d_symptot>=5 & d_symptot!=.
gen d_crit4 = .
replace d_crit4 = 0 if d_symptot<5
replace d_crit4 = 1 if d_symptot>=5 & d_symptot!=.


*#Criterion 5: "At least one symptom from the affective cluster must be present"

*#"Sum of depressive symptoms of affective cluster"
egen d_afftotal = rowtotal (d_s1 d_s2), missing

*#"To fulfil criterion 4 at least one symptoms of the affective cluster should
*#"To fulfil criterion 5 at least one symptoms of the affective cluster should
*# be present".
gen d_crit_4 = .
replace d_crit_4 = 0 if d_afftotal <1
replace d_crit_4 = 1 if d_afftotal==1 | d_afftotal==2
gen d_crit5 = .
replace d_crit5 = 0 if d_afftotal <1
replace d_crit5 = 1 if d_afftotal==1 | d_afftotal==2


***#"Has the person skipped the lifetime depression module?"
Expand Down Expand Up @@ -322,8 +323,8 @@ replace d_skipped = f4223_sum<2 | d_skipped==1 if f4223_sum!=.

***#"Lifetime depression diagnostic variable":
gen depression_lifetime = .
replace depression_lifetime = 0 if d_skipped==1 | d_crit_123==0 | d_crit_4==0 | d_crit_5==0
replace depression_lifetime = 1 if d_skipped==0 & d_crit_123==1 & d_crit_4==1 & d_crit_5==1
replace depression_lifetime = 0 if d_skipped==1 | d_crit_123==0 | d_crit4==0 | d_crit5==0
replace depression_lifetime = 1 if d_skipped==0 & d_crit_123==1 & d_crit4==1 & d_crit5==1
label values depression_lifetime yesno
label variable depression_lifetime "Lifetime depression (c2019_w1)"

Expand Down