coxtv
or coxtp
objectR/baseline.R
baseline.Rd
The baseline estimation is the baseline hazard at each observed failure time when holding all the covariates to be zero.
baseline(fit)
model from coxtv
or coxtp
.
A list with three components:
the unique observed failure times.
the baseline hazard corresponding to each unique failure time point.
the cumulative baseline hazard corresponding to each unique failure time point.
data(ExampleData)
z <- ExampleData$z
time <- ExampleData$time
event <- ExampleData$event
fit <- coxtv(event = event, z = z, time = time)
#> Iter 1: Obj fun = -3.2982771; Stopping crit = 1.0000000e+00;
#> Iter 2: Obj fun = -3.2916285; Stopping crit = 2.1424865e-02;
#> Iter 3: Obj fun = -3.2916034; Stopping crit = 8.0884492e-05;
#> Iter 4: Obj fun = -3.2916034; Stopping crit = 1.8232153e-09;
#> Algorithm converged after 4 iterations!
base.est <- baseline(fit)