riskdist | R Documentation |
Make a plot of predicted risks by outcome
riskdist(
y,
p,
ypos = 0,
labels = c(0, 1),
nbins = 101,
add = TRUE,
maxh = 0.15
)
y |
vector of binary outcome |
p |
vector of predicted risks |
ypos |
where to center the y axis |
labels |
labels for outcomes 0 and 1, respectively. Default to "0" and "1" |
nbins |
Default 101 |
add |
if TRUE (default) added to an existing plot. If FALSE a new plot is made |
maxh |
maximum height of a bar (the bin with largest number of observations). Default = .15 |
No return value, called for side effects
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.