crisk_multi | R Documentation |
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)
dat |
a data.frame in which to interpret the variables. |
csurv |
this is the follow up time. |
cevent |
the status indicator, normally 0=alive, 1=dead. |
convars |
a vector of con variable names. |
catvars |
a vector of cat variable names. |
a tibble of competing risk analysis output.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.