Description Usage Arguments See Also Examples
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.
1 2 |
x |
An object of class |
t |
Time values at which to evaluate hazard function, e.g. |
ci |
Compute simulation-based confidence interval? |
n |
Number of simulations to use for CI, defaults to 1,000. |
xvals |
A vector of values for the duration equation variables, in the
same order as the duration equation in |
zvals |
A vector of values for the risk equation variables, in the same
order as the risk equation in |
... |
Additional parameters passed to |
1 2 3 4 5 6 | # Get model estimates
data(model.coups)
# Plot
plot_hazard(model.coups, ci = FALSE)
plot_hazard(model.coups, ci = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.