checkArgsEventIndicator | R Documentation |
Checks for event categories and gives a warning message indicating which level is assumed to be the reference level.
checkArgsEventIndicator(data, event, censored.indicator)
data |
a |
event |
a character string giving the name of the event variable
contained in |
censored.indicator |
a character string of length 1 indicating which
value in |
A list of length two. The first element is the factored event, and the second element is the numeric representation of the event
if (requireNamespace("survival", quietly = TRUE)) { library(survival) # for veteran data checkArgsEventIndicator(data = veteran, event = "celltype", censored.indicator = "smallcell") checkArgsEventIndicator(data = veteran, event = "status") } data("bmtcrr") # from casebase checkArgsEventIndicator(data = bmtcrr, event = "Sex", censored.indicator = "M") checkArgsEventIndicator(data = bmtcrr, event = "D", censored.indicator = "AML") checkArgsEventIndicator(data = bmtcrr, event = "Status")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.