Xsurv
--- Efficient grdient boosting for survival data in RXsurv
devtools::install_github("topycyao/Xsurv") # Install the package
Xsurv
is a useful and timely computational tool to identify candidate biomarkers that can predict or modulate patient prognosis, which may facilitate cancer translational and clinical research.
Create a ticket with a bug or question on GitHub Issues to help you and enrich it with your experience.
install.packages('devtools') # Ignore this if devtools is already installed.
devtools::install_github('topycyao/Xsurv')
Easy manipulation of survival data:
The only thing you need to do is to divide data into two parts:covariates (x) and survival outcomes ;
Support different algorithms and keep updating;
No effort needed to tune your model even you have no experience:simply run Xsurv.cv and everything is done;
Prognostic biomarker discovery analysis made simple:
Directly know the top n features in fitted model;
A re-construct survival tree with important features helps to understand;
Model determined risk levels and robust predictions for survival probabilty:
library(Xsurv) #Load Xsurv into R
sim_dat<-Xsurv_sim_data(size=500,dim=20,lambda=2,vu=1,
c_rate=0.3) # A data set is generated with sample size =500
#Covariates and survival outcome should be separted before fitting to Xsurv models
sim_x<-sim_dat[,1:20] # The first 20 (equal to dimension of covariates) columns
sim_y<-sim_dat[,c(21,22)] # The last 2 columns
fit<-Xsurv.cv(sim_x,sim_y,top_n=5)
All bug reports, documentation improvements, enhancements and ideas are appreciated. Just let us know via GitHub.
Li,K.et al. (2021). Efficient gradient boosting for prognostic biomarker discovery.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.