# NOT RUN {
data('alcohol')
require(survival)
coxtree <- coxph.tree(alcohol[,'time'], alcohol[,'event'],
x = alcohol[,'alc', drop = FALSE], D = 4)
nodetree <- output.coxphout(coxtree)
subtrees <- prune(nodetree)
store.mult.cont <- bootstrap(B=20, nodetree, subtrees, alcohol[,'time'],
alcohol[,'event'], x = alcohol[,'alc', drop = FALSE],
D=4,minfail=20, alphac=2)
Balph <- 0.5 * 2 * log(nrow(alcohol))
final.tree <- final.tree(nodetree, subtrees, store.mult.cont[[3]], alphac= Balph)
# }
Run the code above in your browser using DataLab