mean_no | R Documentation |
Estimates the mean number of events using the non-parametric estimator described by Cook and Lawless (1997).
mean_no(
formula,
re_indicator,
ce_indicator,
cluster,
data,
re_control = list(),
ce_control = list()
)
formula |
A formula passed to |
re_indicator |
The name of a variable indicating that these rows in the dataset belong to the risksets of the recurrent event process. |
ce_indicator |
The name of a variable indicating that these rows in the datasets belong to the riskset of the competing event process. |
cluster |
A character vector specifying the name of the variable that defines unique observations in the dataset passed to the function. This is only used for data checks |
data |
A |
re_control |
An optional |
ce_control |
An optional |
A data.frame
including the estimated mean number of events expn
at times t
within strata strata
.
library(survival)
mean_no(Surv(time = start,
time2 = stop,
event = event,
type = 'counting') ~ pyridoxine + thiotepa,
re_indicator = "re",
ce_indicator = "ce",
cluster = "id",
data = bladder1_stacked)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.