COX: Function to implement proportional hazard model

Description Usage Arguments Value

View source: R/COX.R

Description

Train the Cox model. Optionally, the regularize cox can also be trained based on the implementation in glmnetUtils.

Usage

1
COX(form, dat, trControl = NULL)

Arguments

form

survival formula

dat

data frame

trControl

list of control parameters:

  1. maxit: number of iterations in glmnet

  2. regularize: train regularize cox?

  3. nfolds : number of folds in glmnet

  4. lambda : numeric vector of lambda values in glmnet

  5. alpha : numeric vector of alpha values in cva.glmnet

Value

returns a list with items:


nguforche/MLSurvival documentation built on July 28, 2019, 1:59 p.m.