baseline: Extract the estimated baseline mean function

View source: R/methods.R

baselineR Documentation

Extract the estimated baseline mean function

Description

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.

Usage

baseline(object, conf_level = 0.95, ...)

Arguments

object

A wnpmle object.

conf_level

Confidence level for the pointwise intervals (default 0.95).

...

Ignored.

Value

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.

Examples


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)


wnpmle documentation built on Dec. 1, 2026, 9:06 a.m.