search for: profitresp

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

2004 Jun 11
1
Error when I try to build / plot a tree using rpart()
Hi, I am using the rpart package to build a classification tree. I did manage to build a tree with data on a previous project. However, when attampting to build a tree on a project I am working on, I seem to be getting the error shown below: > nhg3.rp <- rpart(profitresp ~., nhg3, method="class") > plot(nhg3.rp, branch=0.4, uniform=T); text(nhg3.rp, digits=3) Error in yval[, 1] : incorrect number of dimensions The distribution of my binary dependent variable is: > table(nhg$profitresp) 0 1 3703 4360 I am using 105 potential predictor vari...