sepplot {spduration} | R Documentation |
Generate a Separation Plot
Description
A separationplot
wrapper for class
“spdur
”.
Usage
sepplot(
x,
pred_type = "conditional hazard",
obs = NULL,
endSpellOnly = FALSE,
lwd1 = 5,
lwd2 = 2,
shuffle = TRUE,
heading = "",
show.expected = TRUE,
newplot = FALSE,
type = "line",
...
)
Arguments
x |
An object of class " |
pred_type |
Which statistic to plot, i.e. "conditional hazard" or "conditional risk". |
obs |
Variable that captures observed outcomes. If |
endSpellOnly |
Should only the last observation in each spell be kept?
|
lwd1 |
See |
lwd2 |
See |
shuffle |
See |
heading |
See |
show.expected |
See |
newplot |
See |
type |
See |
... |
Optional parameters passed to |
Details
Creates a separation plot of fitted values from
split-duration model results using predict.spdur
.
See Also
Examples
# get model estimates
library(separationplot)
data(model.coups)
# plot
p <- plot(model.coups)
p
[Package spduration version 0.17.2 Index]