aya_class {cancerR} | R Documentation |
Adolescent and young adult cancer classification
Description
This function classifies the type of adolescent and young adult cancer cases based on the histology, site, and behaviour codes of the cancer. It uses the International Classification of Diseases for Oncology (ICD-O), 3rd edition codes to determine the classification. The function returns a value is based on the method specified and the depth level of the classification hierarchy to be determined.
Usage
aya_class(
histology,
site,
behaviour,
method = "Barr 2020",
depth = 1,
verbose = FALSE
)
Arguments
histology |
Histology code of the cancer. |
site |
Site (aka topography) code of the cancer. |
behaviour |
Behaviour code of the cancer. |
method |
Method used for the diagnosis classification of the cancer.
Default is |
depth |
Depth level of the classification hierarchy to be determined.
If set to |
verbose |
Logical value to print messages to the console if unable to
classify or duplicates found. Default is |
Value
Returns the diagnostic classification of the cancer based on the specified method and depth level.
Examples
# First position in the classification hierarchy
aya_class("9020", "C50.1", "3", method = "Barr 2020", depth = 1)
# Second position in the classification hierarchy
aya_class("9020", "C50.1", "3", method = "Barr 2020", depth = 2)
# Third position in the classification hierarchy
aya_class(9020, "C50.1", "3", method = "Barr 2020", depth = 3)