Make a plot of predicted risks by outcome
riskdist(
y,
p,
ypos = 0,
labels = c(0, 1),
nbins = 101,
add = TRUE,
maxh = 0.15
)
No return value, called for side effects
vector of binary outcome
vector of predicted risks
where to center the y axis
labels for outcomes 0 and 1, respectively. Default to "0" and "1"
Default 101
if TRUE (default) added to an existing plot. If FALSE a new plot is made
maximum height of a bar (the bin with largest number of observations). Default = .15