plot.ahaz: Plot an ahaz object

plot.ahazR 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 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

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)

ahaz documentation built on May 13, 2022, 9:08 a.m.

Related to plot.ahaz in ahaz...