sepplot | R Documentation |
A separationplot
wrapper for class
“spdur
”.
sepplot(
x,
pred_type = "conditional hazard",
obs = NULL,
endSpellOnly = FALSE,
lwd1 = 5,
lwd2 = 2,
shuffle = TRUE,
heading = "",
show.expected = TRUE,
newplot = FALSE,
type = "line",
...
)
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 |
Creates a separation plot of fitted values from
split-duration model results using predict.spdur
.
separationplot
, predict.spdur
# get model estimates
library(separationplot)
data(model.coups)
# plot
p <- plot(model.coups)
p
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.