Usage
## S3 method for class 'pec':
plot(x,
what="PredErr",
who,
crps=FALSE,
xlim=c(x$start,x$maxtime),
ylim=c(0,0.3),
xlab="Time",
ylab,
lwd.lines=2,
axes=TRUE,
col,
lty,
lines.type,
smooth=FALSE,
add.refline=FALSE,
add=FALSE,
legend=ifelse(add,FALSE,TRUE),
legend.text,
legend.args=list(),
specials=NULL,
...)
Arguments
x
object of class pec
obtained with function pec
what
the name of the entry in x
Defauls to PredErr
Other choices are AppErr
, OutOfBagErr
, NoInfErr
, overfit
who
Specifies models in x$models
for which the prediction
error curves are drawn. Defaults to all models.
crps
Logical. If TRUE
apply crps
before plotting the prediction
error curve. xlim
Plotting range on the x-axis.
ylim
Plotting range on the y-axis
xlab
Label given to the x-axis.
ylab
Label given to the y-axis.
lwd.lines
Extra parameter passed to function lines
. axes
if FALSE no axes are drawn
col
vector of colors given to the curves of models in the order determined by who
lty
vector of lty's given to the curves of models in the order determined by who
smooth
if TRUE the plotting values are smoothed with the
function smooth
kind="3R" add.refline
if TRUE a dotted horizontal line is drawn as a
symbol for the naive rule that predicts probability .5 at all
cutpoints (i.e. time points in survival analysis).
add
TRUE means that only lines are added to an existing device
legend
TRUE means draw the legend
legend.text
legend text in the order determined by who
legend.args
a list with arguments that are passed to
legend
. ...
extra arguments that are passed to plot
.