Hi guys, I have a dataset obtained as: mydata <- read.csv("data.csv", header = TRUE) which contains the variable 'y' (y is binary 0 or 1) and some regressor variables. I want to apply the ctree technique on this data with the following requirements: 1> Of course I would need the tree plot (which I can do myself) 2> After that, I would need the segmented subsets of the data (as determined by running ctree()) in array format, i.e. if ctree partitions mydata into 6 smaller datasets, I need to output an array 'CTree_Subsets' with 6 elements, each element being one of these smaller datasets. Note that I need the actual smaller datasets in the array, and not just their characteristics/classification rules obtained from the tree. (Context: I'll need to run separate logistic regression models for each of these smaller datasets). Would really appreciate your help with this issue
Thanks, Preetam -- Preetam Pal (+91)-9432212774 M-Stat 2nd Year, Room No. N-114 Statistics Division, C.V.Raman Hall Indian Statistical Institute, B.H.O.S. Kolkata. [[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.