Hi there,

I need to extract the variable names from all nodes (except the
terminal nodes) from a ctree object, e.g.

library(party)
mammoct <- ctree(ME ~ ., data = mammoexp)
plot(mammoct)

how can I extract the varnames from node   1 (SYMPT) and node 3 (PB)
from the fitted object "mammoct"?

Many Thanks, Sven

______________________________________________
R-help@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.

Reply via email to