crisk_ord | R Documentation |
This function generates a table of competing risk analysis result with number of patients, number of event, number of competing event,
crisk_ord( csurv, cevent, cvars, gnames, month = 0, y1 = TRUE, y2 = TRUE, y5 = TRUE )
csurv |
the duration of follow-up time in months. |
cevent |
the status indicator, which is generally 0 = alive, 1 = event, 2 = other event |
cvars |
a vector, which has the variable's values (ordinal only) |
gnames |
a text string, which is the name of the variable. |
month |
a number to get the month-rate of competing risk. |
y1 |
logical value indicating whether the 1-year competing risk rate should be reported. |
y2 |
logical value indicating whether the 2-year competing risk rate should be reported. |
y5 |
logical value indicating whether the 5-year competing risk rate should be reported. |
a tibble of competing risk analysis output.
Dat <- MASS::Melanoma Dat$time <- Dat$time/30.5 output <- crisk_ord(Dat$time, Dat$status, as.factor(Dat$year), "year")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.