plot.spdur: Plot split-duration model results.

Description Usage Arguments See Also Examples

Description

Plot results from a spduration model. Two types are currently implemented: a separation plot for evaluating model predictions ("sepplot"), and a plot of the conditional hazard rate ("hazard"), with or without simulation-based confidence intervals.

Usage

1
2
## S3 method for class 'spdur'
plot(x, type = "sepplot", ci = TRUE, ...)

Arguments

x

An object of class "spdur".

type

What kind of plot? "sepplot" or "hazard".

ci

For plots of the hazard rate, should a confidence interval be included?

...

Optional parameters passed to separationplot.spdur or plot_hazard.

See Also

separationplot.spdur, plot_hazard

Examples

1
2
3
4
5
6
# get model estimates
data(model.coups)

# plot
plot(model.coups)
plot(model.coups, type = "hazard")


Search within the spduration package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.