plot.ahaz {ahaz} | R Documentation |
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 class 'ahaz'
plot(x, ...)
Arguments
x |
The result of an |
... |
Additional graphical arguments passed to the |
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
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)
[Package ahaz version 1.15 Index]