ctree (party) - select a specific variable in the first split
Hi Achim, Thank you for the quick suggestion. I actually did the first split manually, then grew two trees in the two subsets, it worked. Best, Sal
Hello, My question is related to ctree() function from the library 'party'.
See fortune(58).
Yeah, package 'party' - sorry for the confusion.
Is there a way to force ctree() to use a specific variable in the first split?
No way that does this automatically.
I am asking because the first split contains two variables with very similar scores, and choosing the alternative variable would induce a tree somewhat easier to interpret.
If both variables are closely correlated and you believe one of the variables to be more meaningful for partitioning, then omit the other from tree construction. Alternatively, you can grow two trees in the two subsets based on the
first variable. hth, Z
Thanks, Sal
______________________________________________ R-help at 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.
Salvatore Loguercio, Ph.D. Research Associate - Su Lab Department of Molecular and Experimental Medicine The Scripps Research Institute http://sulab.org loguerci at scripps.edu 858-784-2112