roc_all: Computes AUC of AROC and ROC along with Specificity and...

Description Usage Arguments Value Examples

View source: R/roc_all.R

Description

Computes AUC of AROC and ROC along with Specificity and Sensitivity of the Youden Index

Usage

1

Arguments

data

Healthy control as 0 and Disease control as 1. csv file with header as false. First column defining Sample information. Second column = Group, Third Column = Covariate ( Must be included even with random data to process the code). Rest of the columns are to be used as metabolites

cov

T,F argument specifying whether covariate adjsuted ROC will be computed

Value

Either a list (adjusted + not adjusted) or a data matrix

Examples

1
2
3
D<-as.data.frame(cbind(paste0("sample_",1:26),c(rep(1,13),rep(0,13)),c(rep("2",7),rep("3",12),rep("4",7)),runif(26),runif(26)))
Datas<-rbind(c("Sample","Group","Covariate","some metabolite1","some metabolite2"),D)
roc_all(Datas)

CHKim5/LMSstat documentation built on Dec. 17, 2021, 12:55 p.m.