Description Usage Arguments Value Examples
View source: R/directionality.R
Given an object of class cAnalysis
obtained from a comorbidity analysis,
the comorbidity direction can be estimated. An object of class dataframe
is obtained.
1 2 3 | directionality(input, databasePth, minPairs = 1, sex, ageRange = c(0,
100), days, dataSep = "-", correctedPval = 1,
correctionMethod = "bonferroni", verbose)
|
input |
A |
databasePth |
Determines the path where the intermediate RData objects have been created. It is the same path where the three required input files (patientData, diagnosisData, admissionData) are located. |
minPairs |
Determines the minimum number of patients that must suffer the
comorbidity. By default the |
sex |
Determine what is the sex of interest for performing the comorbidity analysis. |
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. |
days |
Determines the number of days of difference needed for considering two diseases as comorbid. |
dataSep |
Determines the separator symbol used in the admission date.
By default |
correctionMethod |
A binomial test for each pair of diseases is performed to assess the null hypothesis of independence between the two diseases. The Bonferroni correction ("bonferroni") 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 Benjamini-Hochberg false discovery rate method ("fdr"), Holm correction ("holm"), Hochberg correction ("hochberg"), Hommel ("hommel") and Benjamini & Yekutieli ("BY"). |
verbose |
By default |
warnings |
By default |
An object of class dataframe
1 2 3 4 5 6 7 8 9 10 | load(system.file("extdata", "comorMale.RData", package="comoRbidity"))
directionEx <- directionality( input = comorMale,
databasePth = system.file("extdata", package="comoRbidity"),
minPairs = 1,
sex = "Male",
ageRange = c(0,80),
days = "0",
dataSep = "-",
correctionMethod = "bonferroni"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.