Description Usage Arguments Value Examples
Given an object of type comoRbidity
, a comorbidity analysis is perform,
for the subset of population under specific conditions of age and sex. It
generates a cAnalysis
object.
1 2 3 | comorbidityAnalysis(input, codesPth, databasePth, ageRange = c(0, 100),
sex = "ALL", score, correctedPval = 1, correctionMethod = "fdr",
oddsRatio, rr, phi, cores = 1, verbose = FALSE, warnings = TRUE)
|
input |
A comorbidity object, obtained with the query function. |
codesPth |
Determines the path where the file with the index diseases is located (indexDiseaseCode) |
databasePth |
Determines the path where the three required input files (patientData, diagnosisData, admissionData) are located. |
ageRange |
Determines what is the age range of interest for performing the comorbidity analysis. By default it is set from 0 to 100 years old. |
sex |
Determine what is the sex of interest for
performing the comorbidity analysis. By default |
score |
The comorbidity score is a measure based on the observed comorbidities and the expected ones, based on the occurrence of each disease. |
correctedPval |
By default 1. |
correctionMethod |
A Fisher exact test for each pair of diseases is performed to assess the null hypothesis of independence between the two diseases. The Benjamini-Hochberg false discovery rate method ("fdr") is applied to correct for multiple testing by default. However user can select the best correction method for the analysis. The adjustment methods include the Bonferroni correction ("bonferroni"), Holm correction ("holm"), Hochberg correction ("hochberg"), Hommel ("hommel") and Benjamini & Yekutieli ("BY"). |
oddsRatio |
The odds ratio represents the increased chance that someone suffering disease X will have the comorbid disorder Y. |
rr |
The relative risk refers to the fraction between the number of patients diagnosed with both diseases and random expectation based on disease prevalence. |
phi |
The Pearsons correlation for binary variables (Phi) measures the robustness of the comorbidity association. |
cores |
By default |
verbose |
By default |
warnings |
By default |
An object of class cAnalysis
1 2 3 4 5 6 7 8 9 10 11 | load(system.file("extdata", "comorbidity.RData", package="comoRbidity"))
ex1 <- comorbidityAnalysis(
input = comor_obj,
databasePth = system.file("extdata", package="comoRbidity"),
codesPth = system.file("extdata", package="comoRbidity"),
ageRange = c(0,50),
sex = "Female",
score = 1,
correctionMethod = "fdr",
correctedPval = 1
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.