if (FALSE) {
data(burn)
myarg = list(cp = 0, maxcompete = 0, maxsurrogate = 0, maxdepth = 3)
Y.names = c("T3" ,"D3")
P.names = 'Z2'
T.names = c("Z1", paste("Z", 3:11, sep = ''))
burn.tree <- suppressWarnings(improper_tree(burn,
Y.names,
P.names,
T.names,
method = "R2",
args.rpart = myarg))
plot(burn.tree)
text(burn.tree, cex = .7, xpd = TRUE)
}
Run the code above in your browser using DataLab