powered by
Create a table with the general multi-variable competing risk analysis results, including the HR (95 percent CI), P value.
crisk_multi(dat, csurv, cevent, convars = NULL, catvars = NULL)
a tibble of competing risk analysis output.
a data.frame in which to interpret the variables.
this is the follow up time.
the status indicator, normally 0=alive, 1=dead.
a vector of con variable names.
a vector of cat variable names.
Dat <- MASS::Melanoma Dat$time <- Dat$time/30.5 con_var <- c("age","thickness") cat_var <- c("sex","ulcer") multi_out <- crisk_multi(Dat, "time", "status", catvars = cat_var, convars =con_var)
Run the code above in your browser using DataLab