getOC {bossR} | R Documentation |
Select Optimal cutoff for a biomarker
Description
Given a set of data including survival time ,censor status and Biomarker values, return the Optimal cutoff for the biomarker.
Usage
getOC(data, cutoff, type = 2)
Arguments
data |
A data frame which contains 3 columns for cox regression : survival time, censor status, Biomarker values. 2 columns for linear regression : Y, X. |
cutoff |
Numeric vector of candidate cutoffs. |
type |
A number; if =1, will perform linear regression;if =2(default) will perform cox regerssion. |
Value
Optimal cutoff for the biomarker, the FWER of the model
References
BOSS - Biomarker Optimal Segmentation System
Examples
cutoff=c(56,112,167,223,278,334,389,445)
data(myGene)
getOC(data=myGene,cutoff)
[Package bossR version 1.0.4 Index]