baseline: Estimated baseline function

View source: R/methods.R

baselineR Documentation

Estimated baseline function

Description

Estimated baseline function

Usage

baseline(object, ...)

## S3 method for class 'pcdfit'
baseline(object, ...)

Arguments

object

A fitted pcdreg() model.

...

Ignored.

Value

A tibble with one row per examination time on the pooled grid. For pcdreg() it gives the jump sizes and the cumulative baseline rate \Lambda(t); for pcdreg() it gives the baseline mean \mu(t), which is not constrained to increase.

Examples

set.seed(1)
d <- sim_pcd(80, beta = c(1, -1), lambda = function(t) 8 / (1 + t))
head(baseline(pcdreg(pcd(id, tstart, tstop, count) ~ x1 + x2, d)))
head(baseline(pcdreg(pcd(id, tstart, tstop, count) ~ x1 + x2, d, model = "mean")))

pcdreg documentation built on Nov. 10, 2026, 5:09 p.m.