categorical.test: Categorical Information

categorical.testR Documentation

Categorical Information

Description

Summarization of the categorical information.

Usage

categorical.test (name,x,y)

Arguments

name

the name of the feature.

x

the information to summarize.

y

the classification of the cohort.

Value

The function returns a list containing a table with the summarized information and The p-value computated using the Fisher's test.

Author(s)

Stefano Cacciatore

References

Cacciatore S, Luchinat C, Tenori L
Knowledge discovery by accuracy maximization.
Proc Natl Acad Sci U S A 2014;111(14):5117-22. doi: 10.1073/pnas.1220873111. Link

Cacciatore S, Tenori L, Luchinat C, Bennett PR, MacIntyre DA
KODAMA: an updated R package for knowledge discovery and data mining.
Bioinformatics 2017;33(4):621-623. doi: 10.1093/bioinformatics/btw705. Link

See Also

correlation.test,continuous.test, txtsummary

Examples


data(clinical)

hosp=clinical[,"Hospital"]
gender=clinical[,"Gender"]
GS=clinical[,"Gleason score"]
BMI=clinical[,"BMI"]
age=clinical[,"Age"]

A=categorical.test("Gender",gender,hosp)$text
B=categorical.test("Gleason score",GS,hosp)$text

C=continuous.test("BMI",BMI,hosp,digits=2,pos=2,logchange = FALSE)$text
D=continuous.test("Age",age,hosp,digits=1,pos=2,logchange = FALSE)$text

rbind(A,B,C,D)
rbind(A,B,C,D)



KODAMA documentation built on April 1, 2022, 5:06 p.m.