View source: R/estimate_cuminc.R
estimate_cuminc | R Documentation |
Function creates a cumulative incidence object using the
tidycmprsk::cuminc()
function.
estimate_cuminc(
data = NULL,
strata = NULL,
CNSR = "CNSR",
AVAL = "AVAL",
conf.int = 0.95,
...
)
data |
A data frame. The dataset is expected to have one record per subject per analysis parameter. Rows with missing observations included in the analysis are removed. |
AVAL , CNSR , strata |
These arguments are used to construct a formula to be passed to
|
conf.int |
Confidence internal level. Default is 0.95. Parameter is passed to |
... |
Additional argument passed to |
A cumulative incidence object as explained at https://mskcc-epi-bio.github.io/tidycmprsk/reference/cuminc.html
cuminc <-
visR::estimate_cuminc(
data = tidycmprsk::trial,
strata = "trt",
CNSR = "death_cr",
AVAL = "ttdeath"
)
cuminc
cuminc %>%
visR::visr() %>%
visR::add_CI() %>%
visR::add_risktable(statlist = c("n.risk", "cum.event"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.