cox_boost_fun2: CoxBoost model

View source: R/cox_boost_fun2.R

cox_boost_fun2R Documentation

CoxBoost model

Description

CoxBoost model

Usage

cox_boost_fun2(
  r,
  data,
  cvK,
  numm,
  topnumm,
  time1,
  timess,
  stepnumber,
  penaltynumber
)

Arguments

r

a numeric value, a seed to run this method

data

a dataframe, the data used to performance this survival model

cvK

a numeric value, cross-validation fold

numm

a numeric value, the number of variables,i.e.for example, number of proteins in the data

topnumm

a numeric value, the number of variables selected to be passed into the model, for example, the number of DE genes

time1

a numeric value, the time point to calculate the risk, see package "CoxBoost"

timess

a numeric vector of length 15, contains time points to get the time-dependent AUC values

stepnumber

a numeric value, the number of stpes performed in the model, see package "CoxBoost"

penaltynumber

a numeric value, the penalty number used in the model, see package "CoxBoost"

Value

a data.frame with allevaluation measurements in all columns and rows are each fold results from cross-validation

Examples

data("exampledt", package = "SurvBenchmark")
fitform_ogl=survival::Surv(time,status)~.
formula1=fitform_ogl
formula2=fitform_ogl
formula3=survival::Surv(time,status)~1
formula4=survival::Surv(time,status)~1
form1=as.formula(~.)
timess=seq(as.numeric(summary(cancerdt2_1$time)[2]),as.numeric(summary(cancerdt2_1$time)[5]),(as.numeric(summary(cancerdt2_1$time)[5])-as.numeric(summary(cancerdt2_1$time)[2]))/14)
time1=timess[3]
stepnumber=10
penaltynumber=100
want=cox_boost_fun2(1,cancerdt2_1,5,16047,1000,time1,timess,stepnumber,penaltynumber);

SydneyBioX/SurvBenchmark_package documentation built on June 4, 2022, 12:01 p.m.