Hi R-users, I have created a Conditional Tree using the ctree function ( in package partykit). The data had a factor - the y variable - and a host of categorical x-variables. Now, I want to find the proportion of cases where y = 1 in each of the terminal nodes.
Is it possible to do so programmatically? *Tree <- ctree( y~., data = mydata, ctree_control = c(maxdepth = 4))* Regards, Preetam [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.