Skip to content

Feature/c2019/w1/depression icd11 - #13

Open
Leafrancia wants to merge 51 commits into
mainfrom
feature/c2019/w1/depression-icd11
Open

Feature/c2019/w1/depression icd11#13
Leafrancia wants to merge 51 commits into
mainfrom
feature/c2019/w1/depression-icd11

Conversation

@Leafrancia

Copy link
Copy Markdown
Contributor

Please Dani, could you review this proposition of ICD11 code for the 2019w1 dataset?
Thank you in advance.

Leafrancia and others added 16 commits September 14, 2022 13:18
* `use` command was unnecessarily added again in the `descriptives` chunk (raising an error)

* There were extra unnecessary blank lines

* variable label for `depression_12m` in table did not match the value in the output dataset

* Value labels for the dichotomous variables were listed as "no/yes" in the table, instead of (sentence-case) "No/Yes"

* Additional "wildcard" characters should have been deleted
…nmatching number of missing case (depression_lifetime & depression_life_proxy) by taking into acount the proxy caracter of answers
Also sets the width of the "variable information" table to 80 characters to (try) to avoid changes by the visual markdown editor
@Leafrancia
Leafrancia requested a review from DaniMori October 18, 2022 15:06
Comment thread doc/outcomes/cohorte_2019/ola_1/Description_depression_ICD11.Rmd Outdated
Comment thread doc/outcomes/cohorte_2019/ola_1/Description_depression_ICD11.Rmd Outdated

@DaniMori DaniMori left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Leafrancia please review the comments and changes requested. You can use the doc/checklist.md document as a guide if necessary.

Comment thread doc/outcomes/cohorte_2019/ola_1/Description_depression_ICD11.Rmd Outdated
Comment thread doc/outcomes/cohorte_2019/ola_1/Description_depression_ICD11.Rmd Outdated
Comment thread doc/outcomes/cohorte_2019/ola_1/Description_depression_ICD11.Rmd Outdated
Comment thread doc/outcomes/cohorte_2019/ola_1/Description_depression_ICD11.Rmd Outdated
Comment thread doc/outcomes/cohorte_2019/ola_1/Description_depression_ICD11.Rmd
Comment thread doc/outcomes/cohorte_2019/ola_1/Description_depression_ICD11.Rmd Outdated
Comment thread doc/outcomes/cohorte_2019/ola_1/Description_depression_ICD11.Rmd Outdated
Comment thread doc/outcomes/cohorte_2019/ola_1/Description_depression_ICD11.Rmd Outdated
Comment thread doc/outcomes/cohorte_2019/ola_1/Description_depression_ICD11.Rmd Outdated
Comment thread doc/outcomes/cohorte_2019/ola_1/Description_depression_ICD11.Rmd Outdated
@Leafrancia

Copy link
Copy Markdown
Contributor Author

I think the change requested are resolved with in the last commit

@DaniMori

Copy link
Copy Markdown
Owner

@Leafrancia please review carefully my commits from today, and make sure you understand everything and you consider it correct.

@DaniMori
DaniMori self-requested a review November 14, 2022 09:48
Comment thread doc/outcomes/cohorte_2019/ola_1/Description_depression_ICD11.Rmd
Comment thread doc/outcomes/cohorte_2019/ola_1/Description_depression_ICD11.Rmd Outdated

@DaniMori DaniMori left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please review the link to the ICD11 page, then we're good to go I think

@DaniMori DaniMori left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, everything's fine with these changes!

@DaniMori DaniMori left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That should do it. Did you see changes in the prevalence?

@DaniMori DaniMori left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use the encoding criteria stated in lines 124-134, and delete the code related to the "functional impairment"

*# 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==.

Copy link
Copy Markdown
Owner

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)

Copy link
Copy Markdown
Owner

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?

Copy link
Copy Markdown
Owner

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?

Copy link
Copy Markdown
Owner

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

*# 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==.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The 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.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you check whether the two syntaxes were equivalent?

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please @Leafrancia use criteria explained; or if you don't explain why

Comment thread doc/outcomes/cohorte_2019/ola_1/Description_depression_ICD11.Rmd Outdated
Comment thread doc/outcomes/cohorte_2019/ola_1/Description_depression_ICD11.Rmd
Comment thread doc/outcomes/cohorte_2019/ola_1/Description_depression_ICD11.Rmd

@DaniMori DaniMori left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please name the "criteria variables" (d_crit_4 and d_crit_5) correctly, according to the criterion number.

Also, please mind the other two comments, one of them to make sure the code is correct, the other one to improve clarity.

@DaniMori DaniMori left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just put the comments in their place please, then we are done! :)

Comment thread doc/outcomes/cohorte_2019/ola_1/Description_depression_ICD11.Rmd Outdated
Comment thread doc/outcomes/cohorte_2019/ola_1/Description_depression_ICD11.Rmd Outdated

@DaniMori DaniMori left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! However, there are still pending comments. Please go to the "Conversation" tab to see the open conversations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants