plot_hazard plots the shape of estimated hazard function in respect
to duration, given a set of values for the duration and risk equations
covariates. Confidence intervals are provided through simulation.
plot_hazard(x, t = NULL, ci = TRUE, n = 1000, xvals = NULL, zvals = NULL, ...)
An object of class
Time values at which to evaluate hazard function, e.g.
Compute simulation-based confidence interval?
Number of simulations to use for CI, defaults to 1,000.
A vector of values for the duration equation variables, in the
same order as the duration equation in
A vector of values for the risk equation variables, in the same
order as the risk equation in
Additional parameters passed to
# Get model estimates data(model.coups) # Plot plot_hazard(model.coups, ci = FALSE)plot_hazard(model.coups, ci = TRUE)