Usage
calibrate.plot(y,p,
distribution="bernoulli",
replace=TRUE,
line.par=list(col="black"),
shade.col="lightyellow",
shade.density=NULL,
rug.par=list(side=1),
xlab="Predicted value",
ylab="Observed average",
xlim=NULL,ylim=NULL,
knots=NULL,df=6,
...)
Arguments
y
the outcome 0-1 variable
p
the predictions estimating E(y|x)
distribution
the loss function used in creating p
.
bernoulli
and poisson
are currently the
only special options. All others default to squared error
assuming
replace
determines whether this plot will replace or overlay the current plot.
replace=FALSE
is useful for comparing the calibration of several
methods
line.par
graphics parameters for the line
shade.col
color for shading the 2 SE region. shade.col=NA
implies no 2 SE
region
rug.par
graphics parameters passed to rug
xlab
x-axis label corresponding to the predicted values
ylab
y-axis label corresponding to the observed average
xlim,ylim
x and y-axis limits. If not specified te function will select
limits
knots,df
these parameters are passed directly to
ns
for constructing a natural spline
smoother for the calibration curve ...
other graphics parameters passed on to the plot function