[R] Rpart decision tree

dlofaro danilo.lofaro at gmail.com
Wed Feb 15 18:01:43 CET 2012


Dear R-Users,
I'm a R beginner and I have a similar problem:
I fitted a SurvivalTree with rpart and I'm tryng to plot with the partykit
package by the funcion as.party but it sends me this error:

> plot(as.party(rpartSurv))
Error in plot.constparty(as.party(rpartSurv)) : 
  node_surv not yet implemented/

In effect after the library command the node_surv is not reported:

> library(partykit)

Attaching package: ‘partykit’
The following object(s) are masked from ‘package:party’:
    ctree, ctree_control, edge_simple, node_barplot, node_boxplot,
node_inner, node_terminal

How can I implement the node_surv plot?

--
View this message in context: http://r.789695.n4.nabble.com/Rpart-decision-tree-tp3435888p4391156.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list