View source: R/Xsurv_sim_data.R
Xsurv_sim_data | R Documentation |
This function allows you to find risk level automatically with lgbcv object.
Xsurv_sim_data(size, dim, lambda = NULL, vu = 1, beta = NULL, c_rate)
size |
sample size of the simulation data |
dim |
dimension of parameters |
lambda |
scale parameter |
vu |
shape parameter,defaut is 1 for exponential distribution |
beta |
coefficients |
c_rate |
approximate censor rate |
a simulated dataframe
# sim_dat<-Xsurv_sim_data(size=500,dim=20,lambda=2,vu=1, c_rate=0.3) sim_x<-sim_dat[,1:20] sim_y<-sim_dat[,c(21,22)] fit<-Xsurv.cv(sim_x,sim_y,top_n=5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.