You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to generate an updated ADBCVA dataset containing criterion flags CRIT1FL, CRIT2FL, CRIT3FL, CRIT4FL for gaining 10 letters, gaining 15 letters, losing 5 letter and losing 10 letters respectively, along with associated variables CRIT1, CRIT2, CRIT3, CRIT4 encoding the criterion for the flag (eg, CRIT1 = "10 letter BCVA gain" for BCVA records and blank otherwise).
Proposed convention:
CRITxFL with 1<=x<=10 used for BCVA gain categories
CRITxFL with 11<=x<20 used for BCVA loss categories
This will be quite a central function in {admiralophtha}, so we should aim to provide:
many examples in the function roxygen code
vignette
example in the ADBCVA template.
Note: we should also add avoidloss_values and avoidgain_values corresponding to avoiding a loss/gain of x letters. An appropriate convention can also be considered like the one suggested above.
The text was updated successfully, but these errors were encountered:
Sorry for my delay coding. I missed push my branch so copy my code here.
I have some questions.
i) Do gain_values and loss_values always have 2 vectors? If not, I need to modify code which.
ii) Sorry for I am not famillier with ADBCVA, how to define gain_values or loss _values. Do we usulally use minus numbers?
I will confirm with our in-house ophthalmologist tomorrow, and will modify.
Background Information
Create function
derive_var_bcvacritxfl
which can create criterion flags for CBVA gain/loss of x letters. Functionality could be as follows:which could be called like this:
to generate an updated
ADBCVA
dataset containing criterion flagsCRIT1FL
,CRIT2FL
,CRIT3FL
,CRIT4FL
for gaining 10 letters, gaining 15 letters, losing 5 letter and losing 10 letters respectively, along with associated variablesCRIT1
,CRIT2
,CRIT3
,CRIT4
encoding the criterion for the flag (eg,CRIT1 = "10 letter BCVA gain"
for BCVA records and blank otherwise).Proposed convention:
CRITxFL
with 1<=x<=10 used for BCVA gain categoriesCRITxFL
with 11<=x<20 used for BCVA loss categoriesThis will be quite a central function in {admiralophtha}, so we should aim to provide:
Note: we should also add
avoidloss_values
andavoidgain_values
corresponding to avoiding a loss/gain of x letters. An appropriate convention can also be considered like the one suggested above.The text was updated successfully, but these errors were encountered: