Skip to main content
13 events
when toggle format what by license comment
Aug 10, 2018 at 12:19 comment added TheBridge @Matthew Durry : The identation looks mostly ok to me, if you feel like it please edit the code.
Aug 10, 2018 at 12:17 comment added TheBridge @Stehpen Milborrow : I have detailed a bit more the question in the title, it should be ok now.
Aug 10, 2018 at 12:17 history edited TheBridge CC BY-SA 4.0
edited title
Aug 10, 2018 at 12:12 vote accept TheBridge
Aug 10, 2018 at 2:11 answer added Stephen Milborrow timeline score: 2
Aug 10, 2018 at 2:02 comment added Stephen Milborrow You might get more responses if your change your title. Your title Understanding rpart package is too vague. A better title would be something like Why does rpart generate a different tree when the order of the variables in the data is changed?.
Jun 16, 2017 at 17:21 history edited TheBridge CC BY-SA 3.0
indenting code
Jun 16, 2017 at 15:19 comment added Matthew Drury Please indent your code properly when asking others to read it.
Jun 16, 2017 at 14:38 comment added TheBridge By the way the parameter "cp" seems involved in this curious behavior but I can't explain how. regards
Jun 16, 2017 at 14:35 comment added TheBridge @tim : thank's I have edited the post, the data frame is in the R package rpart.plot (also used to plot the trees). Best regards
Jun 16, 2017 at 14:33 history edited TheBridge CC BY-SA 3.0
added 49 characters in body
Jun 16, 2017 at 14:24 comment added Tim You did not provide a reproducible example, there is no ptitanic data in base R, nor in rpart package. As about the results, they are nearly the same -- the only difference is that pruning returned one extra level.
Jun 16, 2017 at 14:04 history asked TheBridge CC BY-SA 3.0