search for: constparty

Displaying 1 result from an estimated 1 matches for "constparty".

2013 Oct 16
1
Extract a predictors form constparty object (CHAID output) in R
...large number of dependencies (say 10-20) for a variable and the chaid function will reduce this to something much more comprehensible (say 3-5). What I want to do is to extract the names of those variable that were shown to be relevant in the chaid() results. The chaid() output is in the form of a constparty object. My question is how to extract the variable names associated with the nodes in such an object. Here is a self contained code example: library(evtree) # for the ContraceptiveChoice dataset library(CHAID) library(vcd) library(MASS) data("ContraceptiveChoice") longform <- formul...