ahaz (version 1.14)

plot.ahaz: Plot an ahaz object

Description

Plot method for a fitted semiparametric additive hazards model; plots the Breslow estimate of underlying cumulative hazard function.

Usage

# S3 method for ahaz
plot(x, …)

Arguments

x

The result of an ahaz fit.

Additional graphical arguments passed to the plot function.

Details

Calling plot.ahaz is equivalent to first calling ahaz, then calling predict with type="cumhaz", and finally calling plot.

See Also

ahaz, predict.ahaz, plot.cumahaz

Examples

Run this code
# NOT RUN {
data(sorlie)

# Break ties
set.seed(10101)
time <- sorlie$time+runif(nrow(sorlie))*1e-2

# Survival data + covariates
surv <- Surv(time,sorlie$status)
X <- as.matrix(sorlie[,15:24])

# Fit additive hazards model
fit <- ahaz(surv, X)
plot(fit)
# }

Run the code above in your browser using DataLab