| baseline | R Documentation |
Returns a data frame with the estimated cumulative baseline mean function Lambda(t) and its increments lambda(t), together with standard errors and pointwise 95% confidence intervals.
baseline(object, conf_level = 0.95, ...)
object |
A |
conf_level |
Confidence level for the pointwise intervals (default 0.95). |
... |
Ignored. |
A data frame with columns:
time |
Recurrent event times. |
lambda |
Estimated baseline increments. |
Lambda |
Estimated cumulative baseline mean. |
se_Lambda |
Standard error of Lambda (if SE was estimated). |
lower |
Lower pointwise confidence band for Lambda. |
upper |
Upper pointwise confidence band for Lambda. |
bdata <- bladder_prep()
bdata_clean <- bdata[, c("id", "time", "status", "treat", "num", "size")]
fit <- wnpmle_fit(Surv(time, status) ~ treat + num + size,
data = bdata_clean, id = "id", model = "log", r = 1)
bl <- baseline(fit)
head(bl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.