sexRatio: Sex Ratio Analysis.

Description Usage Arguments Value Examples

Description

Given two objects of class comoRbidity, one for each sex, the sex ratio estimation is performed.

Usage

1
2
sexRatio(female, male, fisherTest = 0, fisherCutOff = 0.05,
  verbose = FALSE, warnings = TRUE)

Arguments

female

A comoRbidity object, containing the comorbidity data for female patients.

male

A comoRbidity object, containing the comorbidity data for male patients.

fisherTest

By default the fisher test is not performed. The fisherTest default argument is set to 0. It can be changed to 1 in order to perform the fisher test to each common comorbidity present in male and female.

fisherCutOff

by default 0.05. The value of the argument can be changed to any other numeric variable, according to the range of the fisher value.

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 dataframe with the sex ratio estimation is obtained

Examples

1
2
3
4
5
6
load(system.file("extdata", "comorMale.RData", package="comoRbidity"))
load(system.file("extdata", "comorFemale.RData", package="comoRbidity"))
srEstimation <- sexRatio( female       = comorFemale, 
                          male         = comorMale, 
                          fisherTest    = 0
              )

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