# NOT RUN {
##Call in alcohol data set
data('alcohol')
require(survival)
coxtree <- optimal.cutpoint(alcohol[,'time'], alcohol[,'event'],
x = alcohol[,'alc', drop = FALSE])
# }
Run the code above in your browser using DataLab