Hi, I am trying to use CART to find an ideal cut-off value for a simple diagnostic test (ie when the test score is above x, diagnose the condition). When I put in the model
fit=rpart(outcome ~ predictor1(TB144), method="class", data=data8) sometimes it gives me a tree with multiple nodes for the same predictor (see below for example of tree with 1 or multiple nodes). Is there a way to tell it to make only 1 node? Or is it safe to assume that the cut-off value on the primary node is the ideal cut-off? Thanks! Katie http://n4.nabble.com/file/n964970/smartDNA%2BCART%2B-%2BTB144n.jpg http://n4.nabble.com/file/n964970/smartDNA%2BCART%2B-%2BTB122n.jpg -- View this message in context: http://n4.nabble.com/rcart-classification-and-regression-trees-CART-tp964970p964970.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.