dx_self_report_lookup | R Documentation |
Look up whether a diagnosis has been self-reported, based on coding 6. See https://biobank.ctsu.ox.ac.uk/crystal/coding.cgi?id=6. For disease-specific diagnosis_*()
functions, the function dx_self_text_to_codes()
is used internally to convert the text form of the diagnosis to the code used in the UKBdata table.
dx_self_report_lookup( data, codes, after_instance = default_after_inst(), up_to_instance = default_up_to_inst(), diagnosis_col = f.20002.0.0.Non_cancer_illness_code_self_reported )
data |
The primarydata frame. Thisdata frame includes all necessary columns required to perform look-ups (e.g. ICD10 code columns, medication code columns, age, sex, etc.). |
codes |
Diagnosis codes to look up. |
after_instance |
An integer specifying an instance number, or the name of the column (using < |
up_to_instance |
An integer specifying an instance number, or the name of the column (using < |
diagnosis_col |
Template column name for self-reported diagnosis codes. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.