lofcurve {conTree} | R Documentation |
Produce lack-of-fit curve for a contrast tree
Description
Produce lack-of-fit curve for a contrast tree
Usage
lofcurve(
tree,
x,
y,
z,
w = rep(1, length(y)),
doplot = "first",
col = "black",
ylim = NULL
)
Arguments
tree |
model object output from contrast() or prune() |
x |
training input predictor data matrix or data frame in same format as in contrast() |
y |
vector, or matrix containing training data input outcome values or censoring intervals for each observation in same format as in contrast() |
z |
vector containing values of a second contrasting quantity for each observation in same observation format as in contrast () |
w |
observation weights |
doplot |
logical flag. doplot="first" implies start new display. doplot="next" implies super impose plot on existing display. doplot="none" implies no plot displayed. |
col |
color of plotted curve |
ylim |
y-axis limit |
Value
a named list of plotted x
and y
points
[Package conTree version 0.3-1 Index]