diseasePrevalence: A graphical summary of the disease prevalence.

Description Usage Arguments Value Examples

View source: R/diseasePrevalence.R

Description

Given an object of class comorbidity, and the characters used to specify the sex, a barplot showing the disease prevalence in general and according to sex is obtained.

Usage

1
2
3
diseasePrevalence(input, maleCode = "Male", femaleCode = "Female",
  databasePth, barColor = "lightblue", verbose = FALSE,
  warnings = TRUE)

Arguments

input

Object of comorbidity class.

maleCode

Characters(s) used to determine the male condition of a patient. Depending on the database it can be determined, for example, as Male, . MALE, M, with digits as 0 or 1.

femaleCode

Characters(s) used to determine the female condition of a patient. Depending on the database it can be determined, for example, as Female, . FEMALE, F, with digits as 0 or 1.

databasePth

Determines the path where the three required input files (patientData, diagnosisData, admissionData) are located.

barColor

Determines the bar color. By default lightblue.

verbose

By default FALSE. Change it to TRUE to get a on-time log from the function.

warnings

By default TRUE. Change it to FALSE to don't see the warnings.

Value

A barplot with disease prevalence in all the population and according to the sex.

Examples

1
2
3
4
5
6
7
load(system.file("extdata", "comorbidity.RData", package="comoRbidity"))
diseasePrevalence( input      = comor_obj, 
           maleCode   = "Male", 
           femaleCode = "Female",
           databasePth      = system.file("extdata", package="comoRbidity"), 
           barColor    = "darkcyan"
           )

aGutierrezSacristan/comorbidity documentation built on April 10, 2020, 5:54 p.m.