Plotting the baseline hazard from a fitted baseline
object.
# S3 method for baseline
plot(x, xlab, ylab, xlim, ylim, title, ...)
fitted object from baseline
function.
the title for the x axis.
the title for the y axis.
the limits of the x axis.
the limits of the y axis.
the title for the plot.
other graphical parameters to plot
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)
plot(base.est)